From 8afe005f424e43e783a0220a863099a0f1037052 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 8 Jan 2005 22:51:15 +0000 Subject: Consistently use geteuid() not getuid(); there were a few places deviating from our long-established standard. --- src/bin/scripts/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/scripts/common.c') 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"), -- cgit v1.2.3