diff options
| author | Bruce Momjian | 2013-12-18 17:16:16 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2013-12-18 17:16:21 +0000 |
| commit | 613c6d26bd42dd8c2dd0664315be9551475b8864 (patch) | |
| tree | e0eb178bf76220fc9b082d9e849bee67c03f9e13 /src/tools | |
| parent | 11ac4c73cb89551d7e0d0180b58d82186f072f8d (diff) | |
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
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/msvc/Mkvcbuild.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index bc7f4496e0..d6b6eaf158 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -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); |
