mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
nproc: support --ignore counts > 2**64
* src/nproc.c (main): Allow --ignore arg to exceed 2**64.
This commit is contained in:
1 parent
67eff6359d
commit
ad094f20ed
2 files changed
+4
-3
No files matched your search
@@ -34,8 +34,8 @@ GNU coreutils NEWS -*- outline -*-
|
||||
|
||||
** Improvements
|
||||
|
||||
'head -c NUM', 'head -n NUM' and 'nl -l NUM' no longer fail merely
|
||||
because NUM stands for 2**64 or more.
|
||||
'head -c NUM', 'head -n NUM', 'nl -l NUM' and 'nproc --ignore NUM'
|
||||
no longer fail merely because NUM stands for 2**64 or more.
|
||||
|
||||
sort operates more efficiently when used on pseudo files with
|
||||
an apparent size of 0, like those in /proc.
|
||||
|
||||
+2
-1
@@ -101,7 +101,8 @@ main (int argc, char **argv)
|
||||
break;
|
||||
|
||||
case IGNORE_OPTION:
|
||||
ignore = xdectoumax (optarg, 0, ULONG_MAX, "", _("invalid number"),0);
|
||||
ignore = xnumtoumax (optarg, 10, 0, ULONG_MAX, "",
|
||||
_("invalid number"), 0, XTOINT_MAX_QUIET);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user