diff options
author | Jim Meyering <jim@meyering.net> | 2004-03-21 19:18:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-03-21 19:18:24 +0000 |
commit | 03ed43f2b0ac3b93c5b43db809a654324862a268 (patch) | |
tree | 562009c7b457532e91ba49aacdcbeb91a99a8561 | |
parent | 977dc6841b877a94ba84f51ac64d8e769802f6b2 (diff) | |
download | coreutils-03ed43f2b0ac3b93c5b43db809a654324862a268.tar.xz |
(main): whoops. don't use errno for this diagnostic:
_("no files specified in %s"),
-rw-r--r-- | src/du.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -767,6 +767,7 @@ main (int argc, char **argv) struct stat st; size_t projected_n_filenames = ((fstat (fileno (istream), &st) == 0 + && S_ISREG (st.st_mode) && 0 < st.st_size) ? st.st_size / (EXPECTED_BYTES_PER_FILE_NAME + 1) : DEFAULT_PROJECTED_N_FILES); @@ -780,7 +781,7 @@ main (int argc, char **argv) quote (files_from)); if (n_files == 0) - error (EXIT_FAILURE, errno, _("no files specified in %s"), + error (EXIT_FAILURE, 0, _("no files specified in %s"), quote (files_from)); /* Fail if any name has length zero. */ |