mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
pgindent copy.c. Patch wasn't in proper format.
This commit is contained in:
parent
0cd8cb1a03
commit
87675fab6f
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* 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
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
fp = AllocateFile(filename, PG_BINARY_R);
|
||||
|
||||
if (fp == NULL)
|
||||
@ -336,7 +337,8 @@ DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
|
||||
(int) geteuid(), filename, strerror(errno), errno);
|
||||
|
||||
fstat(fileno(fp), &st);
|
||||
if( S_ISDIR(st.st_mode) ){
|
||||
if (S_ISDIR(st.st_mode))
|
||||
{
|
||||
FreeFile(fp);
|
||||
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).",
|
||||
(int) geteuid(), filename, strerror(errno), errno);
|
||||
fstat(fileno(fp), &st);
|
||||
if( S_ISDIR(st.st_mode) ){
|
||||
if (S_ISDIR(st.st_mode))
|
||||
{
|
||||
FreeFile(fp);
|
||||
elog(ERROR, "COPY: %s is a directory.", filename);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user