mirror of
https://github.com/postgres/postgres.git
synced 2025-05-23 00:02:38 -04:00
(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.
21 lines
524 B
C
21 lines
524 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* copy.h
|
|
* Definitions for using the POSTGRES copy command.
|
|
*
|
|
*
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: copy.h,v 1.6 1999/11/21 04:16:17 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef COPY_H
|
|
#define COPY_H
|
|
|
|
|
|
void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe,
|
|
char *filename, char *delim, int fileumask);
|
|
|
|
#endif /* COPY_H */
|