summaryrefslogtreecommitdiff
path: root/src/bin/scripts/common.c
diff options
context:
space:
mode:
authorTom Lane2005-01-08 22:51:15 +0000
committerTom Lane2005-01-08 22:51:15 +0000
commit8afe005f424e43e783a0220a863099a0f1037052 (patch)
tree035067593187f98fb45c141f6499cea231eaab61 /src/bin/scripts/common.c
parentb5adf46cbd18f1825d743c8d905f46bb3a4f4fc5 (diff)
Consistently use geteuid() not getuid(); there were a few places deviating
from our long-established standard.
Diffstat (limited to 'src/bin/scripts/common.c')
-rw-r--r--src/bin/scripts/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c
index d11ebfd644f..c84617b3edf 100644
--- a/src/bin/scripts/common.c
+++ b/src/bin/scripts/common.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.15 2004/12/31 22:03:17 pgsql Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.16 2005/01/08 22:51:14 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -27,7 +27,7 @@ get_user_name(const char *progname)
#ifndef WIN32
struct passwd *pw;
- pw = getpwuid(getuid());
+ pw = getpwuid(geteuid());
if (!pw)
{
fprintf(stderr, _("%s: could not obtain information about current user: %s\n"),