11 lines
299 B
Diff
11 lines
299 B
Diff
--- pwdx.c
|
|
+++ pwdx.c 2012-06-06 11:59:43.166745435 +0000
|
|
@@ -107,6 +107,7 @@ int main(int argc, char *argv[])
|
|
buflen = 10 + strlen(argv[i]) + 1;
|
|
buf = xmalloc(buflen);
|
|
|
|
+ errno = 0;
|
|
if (check_pid_argument(argv[i]))
|
|
xerrx(EXIT_FAILURE, _("invalid process id: %s"),
|
|
argv[i]);
|