mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Fix incorrect error message reported for non-existent users
Previously, lookups of non-existent user names could return "Success"; it will now return "User does not exist" by resetting errno. This also centralizes the user name lookup code in libpgport. Report and analysis by Nicolas Marchildon; patch by me
This commit is contained in:
@@ -70,8 +70,8 @@ sub mkvcbuild
|
||||
erand48.c snprintf.c strlcat.c strlcpy.c dirmod.c noblock.c path.c
|
||||
pgcheckdir.c pg_crc.c pgmkdirp.c pgsleep.c pgstrcasecmp.c pqsignal.c
|
||||
qsort.c qsort_arg.c quotes.c
|
||||
sprompt.c tar.c thread.c getopt.c getopt_long.c dirent.c rint.c win32env.c
|
||||
win32error.c win32setlocale.c);
|
||||
sprompt.c tar.c thread.c getopt.c getopt_long.c dirent.c rint.c username.c
|
||||
win32env.c win32error.c win32setlocale.c);
|
||||
|
||||
our @pgcommonallfiles = qw(
|
||||
exec.c pgfnames.c psprintf.c relpath.c rmtree.c wait_error.c);
|
||||
|
||||
Reference in New Issue
Block a user