summaryrefslogtreecommitdiff
path: root/src/backend/utils/init/findbe.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-04-21 18:29:29 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-04-21 18:29:29 +0000
commit8407bb3c724fa0c64996ad42f6c31f684f48b401 (patch)
treea8a26b03a8836a4e123f743442f43760c337291e /src/backend/utils/init/findbe.c
parent9ae6819038afca93a6ea5790cf176c91c1c0de01 (diff)
Remove useless setuid() call, instead add a check that real and effective
userids are the same. Per today's pghackers discussion.
Diffstat (limited to 'src/backend/utils/init/findbe.c')
-rw-r--r--src/backend/utils/init/findbe.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/utils/init/findbe.c b/src/backend/utils/init/findbe.c
index d59b3bfa075..507e3db2099 100644
--- a/src/backend/utils/init/findbe.c
+++ b/src/backend/utils/init/findbe.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.20 2001/01/24 19:43:15 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.21 2001/04/21 18:29:29 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -93,9 +93,6 @@ ValidateBinary(char *path)
/*
* Ensure that the file is both executable and readable (required for
* dynamic loading).
- *
- * We use the effective uid here because the backend will not have
- * executed setuid() by the time it calls this routine.
*/
euid = geteuid();
if (euid == buf.st_uid)