FreeBSD Bugzilla – Attachment 159633 Details for
Bug 202152
xargs -PN either crashes or always returns an error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v0
xargs_PN.diff (text/plain), 710 bytes, created by
Jan Beich
on 2015-08-07 07:45:08 UTC
(
hide
)
Description:
v0
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2015-08-07 07:45:08 UTC
Size:
710 bytes
patch
obsolete
>Index: usr.bin/xargs/xargs.c >=================================================================== >--- usr.bin/xargs/xargs.c (revision 286403) >+++ usr.bin/xargs/xargs.c (working copy) >@@ -166,13 +166,11 @@ main(int argc, char *argv[]) > oflag = 1; > break; > case 'P': >- maxprocs = strtonum(optarg, 1, INT_MAX, &errstr); >+ maxprocs = strtonum(optarg, 0, INT_MAX, &errstr); > if (errstr) > errx(1, "-P %s: %s", optarg, errstr); > if (getrlimit(RLIMIT_NPROC, &rl) != 0) > errx(1, "getrlimit failed"); >- if (*endptr != '\0') >- errx(1, "invalid number for -P option"); > if (maxprocs < 0) > errx(1, "value for -P option should be >= 0"); > if (maxprocs == 0 || maxprocs > rl.rlim_cur)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202152
: 159633