]> granicus.if.org Git - postgresql/commit
Change backend-side COPY to write files with permissions 644 not 666
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 1999 04:16:17 +0000 (04:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 1999 04:16:17 +0000 (04:16 +0000)
commitd8ba3dfb0b3385350d512fd6d56c83c244c98016
treeedc2b511d07e6f02c8f23b0b6faa561bebd7d1db
parent76ccf73f2bd3c8af621c24fd3ebddcc2ff21d807
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.
src/backend/commands/copy.c
src/backend/commands/user.c
src/backend/tcop/utility.c
src/bin/initdb/initdb.sh
src/include/commands/copy.h