diff options
author | Jim Meyering <meyering@redhat.com> | 2008-08-10 10:51:03 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-08-10 16:48:55 +0200 |
commit | cd1f4bc1ecde1e7b313c1d0d587a07965d00d8b1 (patch) | |
tree | 098e699c44e71522d8b9554d027c857eec5f1b5b /src | |
parent | b673a5b8ac32a325bb36a9a5a16747520832a456 (diff) | |
download | coreutils-cd1f4bc1ecde1e7b313c1d0d587a07965d00d8b1.tar.xz |
sort: don't print uninitialized in diagnostic
* src/sort.c (specify_nmerge): Do use uinttostr value.
Provoke with e.g., sort -m --batch-size=18446744073709551617
Omit quotes around known-numeric value in diagnostic.
* tests/misc/sort-merge [nmerge-big]: Tighten ERR_SUBST regexp
to require a numeric value in that diagnostic, so this particular
failure cannot reappear.
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c index 9f998a6a4..74318b900 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1111,12 +1111,12 @@ specify_nmerge (int oi, char c, char const *s) if (e == LONGINT_OVERFLOW) { char max_nmerge_buf[INT_BUFSIZE_BOUND (unsigned int)]; - uinttostr (max_nmerge, max_nmerge_buf); error (0, 0, _("--%s argument %s too large"), long_options[oi].name, quote(s)); error (SORT_FAILURE, 0, _("maximum --%s argument with current rlimit is %s"), - long_options[oi].name, quote (max_nmerge_buf)); + long_options[oi].name, + uinttostr (max_nmerge, max_nmerge_buf)); } else xstrtol_fatal (e, oi, c, long_options, s); |