mirror of https://github.com/mkerrisk/man-pages
ffix
This commit is contained in:
parent
6ba73a7385
commit
0adc4176a2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue