*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.1.1.1 1996/07/09 06:21:30 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.1.1.1.2.1 1996/08/26 20:34:49 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
char *conf_file;
/* put together the full pathname to the config file */
- conf_file = (char *) malloc((strlen(GetPGData())+strlen(CONF_FILE)+2)*sizeof(char));
- strcpy(conf_file, GetPGData());
- strcat(conf_file, "/");
- strcat(conf_file, CONF_FILE);
-
+ conf_file = (char *) malloc((strlen(DataDir)+strlen(CONF_FILE)+2)*sizeof(char));
+ sprintf(conf_file, "%s/%s", DataDir, CONF_FILE);
/* Open the config file. */
file = fopen(conf_file, "r");
}
else
{ (void) sprintf(PQerrormsg,
- "hba_recvauth: config file does not exist or permissions are not setup correctly!\n");
+ "hba_recvauth: Host-based authentication config file "
+ "does not exist or permissions are not setup correctly! "
+ "Unable to open file \"%s\".\n",
+ conf_file);
fputs(PQerrormsg, stderr);
pqdebug("%s", PQerrormsg);
free(conf_file);
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.3 1996/07/23 02:23:47 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.3.2.1 1996/08/26 20:35:29 scrappy Exp $
*
* NOTES
*
sprintf(path, "%s%cbase%ctemplate1%cpg_class", DataDir, SEP_CHAR, SEP_CHAR,
SEP_CHAR);
if ((fp=fopen(path, "r")) == NULL) {
- fprintf(stderr, "%s: data base not found in directory \"%s\"\n",
- progname, DataDir);
+ fprintf(stderr, "%s does not find the database. Expected to find it "
+ "in the PGDATA directory \"%s\", but unable to open directory "
+ "with pathname \"%s\".\n",
+ progname, DataDir, path);
exit(2);
}
fclose(fp);