aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/copy.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-11-21 04:16:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-11-21 04:16:17 +0000
commitd8ba3dfb0b3385350d512fd6d56c83c244c98016 (patch)
treeedc2b511d07e6f02c8f23b0b6faa561bebd7d1db /src/include/commands/copy.h
parent76ccf73f2bd3c8af621c24fd3ebddcc2ff21d807 (diff)
downloadpostgresql-d8ba3dfb0b3385350d512fd6d56c83c244c98016.tar.gz
postgresql-d8ba3dfb0b3385350d512fd6d56c83c244c98016.zip
Change backend-side COPY to write files with permissions 644 not 666
(whoever thought world-writable files were a good default????). Modify the pg_pwd code so that pg_pwd is created with 600 permissions. Modify initdb so that permissions on a pre-existing PGDATA directory are not blindly accepted: if the dir is already there, it does chmod go-rwx to be sure that the permissions are OK and the dir actually is owned by postgres.
Diffstat (limited to 'src/include/commands/copy.h')
-rw-r--r--src/include/commands/copy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h
index 5e4dc4f3d38..5e7355b7e91 100644
--- a/src/include/commands/copy.h
+++ b/src/include/commands/copy.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: copy.h,v 1.5 1999/02/13 23:21:18 momjian Exp $
+ * $Id: copy.h,v 1.6 1999/11/21 04:16:17 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -14,7 +14,7 @@
#define COPY_H
-void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe, char *filename,
- char *delim);
+void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
+ char *filename, char *delim, int fileumask);
#endif /* COPY_H */