pgindent copy.c. Patch wasn't in proper format.

This commit is contained in:
Bruce Momjian 2002-02-24 02:33:33 +00:00
parent 0cd8cb1a03
commit 87675fab6f

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.147 2002/02/24 02:32:26 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.148 2002/02/24 02:33:33 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -327,6 +327,7 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
else else
{ {
struct stat st; struct stat st;
fp = AllocateFile(filename, PG_BINARY_R); fp = AllocateFile(filename, PG_BINARY_R);
if (fp == NULL) if (fp == NULL)
@ -336,7 +337,8 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
(int) geteuid(), filename, strerror(errno), errno); (int) geteuid(), filename, strerror(errno), errno);
fstat(fileno(fp), &st); fstat(fileno(fp), &st);
if( S_ISDIR(st.st_mode) ){ if (S_ISDIR(st.st_mode))
{
FreeFile(fp); FreeFile(fp);
elog(ERROR, "COPY: %s is a directory.", filename); elog(ERROR, "COPY: %s is a directory.", filename);
} }
@ -388,7 +390,8 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
"writing. Errno = %s (%d).", "writing. Errno = %s (%d).",
(int) geteuid(), filename, strerror(errno), errno); (int) geteuid(), filename, strerror(errno), errno);
fstat(fileno(fp), &st); fstat(fileno(fp), &st);
if( S_ISDIR(st.st_mode) ){ if (S_ISDIR(st.st_mode))
{
FreeFile(fp); FreeFile(fp);
elog(ERROR, "COPY: %s is a directory.", filename); elog(ERROR, "COPY: %s is a directory.", filename);
} }