This commit is contained in:
Michael Kerrisk 2007-07-19 07:31:25 +00:00
parent 6ba73a7385
commit 0adc4176a2
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ main(int argc, char *argv[])
uid = strtol(argv[1], &endptr, 10); /* Allow a numeric string */
if (*endptr != '\\0') { /* Was not pure numeric string */
pwd = getpwnam(argv[1]); /* Try getting UID for username */
pwd = getpwnam(argv[1]); /* Try getting UID for username */
if (pwd == NULL) {
perror("getpwnam");
exit(EXIT_FAILURE);