]> git.ipfire.org Git - thirdparty/coreutils.git/commit
rm: fix prompted number of arguments to remove on some platforms
authorPádraig Brady <P@draigBrady.com>
Thu, 27 Nov 2014 00:51:00 +0000 (00:51 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 27 Nov 2014 14:25:00 +0000 (14:25 +0000)
commit7d1fe8868e29ae2644831685df4a29638721d6ba
treedca250b9dd338b191879afd36e115eba244db1ae
parenta78d85386bf4a55d7ccbd7c03c0075615b3f61d2
rm: fix prompted number of arguments to remove on some platforms

"zu" was output on solaris 8 for example rather than the number,
since coreutils-8.22.

* cfg.mk: Disallow %z, since we don't currently use the gnulib
fprintf module, so any usage with it is non portable.  Also
our usage with error() currently works only through an ancillary
dependency on the vfprintf gnulib module.
* src/rm.c (main): Use %PRIuMAX rather than %zu for portability.
* src/dd.c (alloc_[io]buf): Likewise for consistency.
* src/od.c (main): Likewise.
* src/split.c (set_suffix_length): Likewise.
* NEWS: Mention the rm bug fix.
Reported in http://bugs.gnu.org/19184
NEWS
cfg.mk
src/dd.c
src/od.c
src/rm.c
src/split.c