*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.146 2002/02/23 21:46:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.147 2002/02/24 02:32:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
fstat(fileno(fp),&st);
if( S_ISDIR(st.st_mode) ){
- fclose(fp);
+ FreeFile(fp);
elog(ERROR,"COPY: %s is a directory.",filename);
}
}
(int) geteuid(), filename, strerror(errno), errno);
fstat(fileno(fp),&st);
if( S_ISDIR(st.st_mode) ){
- fclose(fp);
+ FreeFile(fp);
elog(ERROR,"COPY: %s is a directory.",filename);
}
}