Massimo fix for non-existant file copy error.

This commit is contained in:
Bruce Momjian 1997-01-10 17:46:33 +00:00
parent 90ff767d14
commit a0d9bdd99b

View File

@ -6,7 +6,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.20 1997/01/10 09:57:14 vadim Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.21 1997/01/10 17:46:33 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -126,7 +126,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
fp = fopen(filename, "r"); fp = fopen(filename, "r");
if (fp == NULL) if (fp == NULL)
elog(WARN, "COPY command, running in backend with " elog(WARN, "COPY command, running in backend with "
"effective uid %d, could not open file '%s' for ", "effective uid %d, could not open file '%s' for "
"reading. Errno = %s (%d).", "reading. Errno = %s (%d).",
geteuid(), filename, strerror(errno), errno); geteuid(), filename, strerror(errno), errno);
/* Above should not return */ /* Above should not return */
@ -145,7 +145,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
umask(oumask); umask(oumask);
if (fp == NULL) if (fp == NULL)
elog(WARN, "COPY command, running in backend with " elog(WARN, "COPY command, running in backend with "
"effective uid %d, could not open file '%s' for ", "effective uid %d, could not open file '%s' for "
"writing. Errno = %s (%d).", "writing. Errno = %s (%d).",
geteuid(), filename, strerror(errno), errno); geteuid(), filename, strerror(errno), errno);
/* Above should not return */ /* Above should not return */