diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-04-21 18:29:29 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-04-21 18:29:29 +0000 |
commit | 8407bb3c724fa0c64996ad42f6c31f684f48b401 (patch) | |
tree | a8a26b03a8836a4e123f743442f43760c337291e /src/backend/utils/init/findbe.c | |
parent | 9ae6819038afca93a6ea5790cf176c91c1c0de01 (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.c | 5 |
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) |