aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/libpq/be-fsstubs.c4
-rw-r--r--src/backend/main/main.c11
2 files changed, 7 insertions, 8 deletions
diff --git a/src/backend/libpq/be-fsstubs.c b/src/backend/libpq/be-fsstubs.c
index 365ec974342..c60e060cd21 100644
--- a/src/backend/libpq/be-fsstubs.c
+++ b/src/backend/libpq/be-fsstubs.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.19 1998/01/07 21:03:12 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.20 1998/05/12 21:43:58 momjian Exp $
*
* NOTES
* This should be moved to a more appropriate place. It is here
@@ -344,7 +344,7 @@ lo_export(Oid lobjId, text *filename)
*/
oumask = umask((mode_t) 0);
StrNCpy(fnamebuf, VARDATA(filename), VARSIZE(filename) - VARHDRSZ + 1);
- fd = open(fnamebuf, O_CREAT | O_WRONLY, 0666);
+ fd = open(fnamebuf, O_CREAT | O_WRONLY | O_TRUNC, 0666);
umask(oumask);
if (fd < 0)
{ /* error */
diff --git a/src/backend/main/main.c b/src/backend/main/main.c
index af16267aad6..dfb9ad78245 100644
--- a/src/backend/main/main.c
+++ b/src/backend/main/main.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.18 1998/04/30 14:25:13 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/main/main.c,v 1.19 1998/05/12 21:43:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -31,11 +31,10 @@
#include "tcop/tcopprot.h" /* for PostgresMain() */
#define NOROOTEXEC "\
-\n\"root\" execution of the PostgreSQL backend is not permitted\n\n\
-It is highly recommended that the backend be started under it's own userid\n\
-to prevent possible system security compromise. This can be accomplished\n\
-by placing the following command in the PostgreSQL startup script.\n\n\
-echo \"postmaster >/var/log/pglog 2>&1 &\" | su - postgres\n\n"
+\n\"root\" execution of the PostgreSQL backend is not permitted.\n\n\
+The backend must be started under it's own userid to prevent\n\
+a possible system security compromise. See the INSTALL file for\n\
+more information on how to properly start the postmaster.\n\n"
int
main(int argc, char *argv[])