]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
ls now exits with status 1 if minor problem, 2 on serious trouble.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Dec 2004 17:51:23 +0000 (17:51 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Dec 2004 17:51:23 +0000 (17:51 +0000)
ChangeLog
doc/ChangeLog

index e7b3523077860f3bbe31113e8f63eec29a25628f..f0901dde015d5b2ca2a1187f24541d88cdc3cadc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,23 @@
-2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
+2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 5.3.0.
 
+       * ls now exits with status 1 on minor problems, 2 if serious trouble.
+       * NEWS: Document this.
+       * src/ls.c (LS_MINOR_PROBLEM, LS_FAILURE): New constants.
+       All uses of EXIT_FAILURE replaced with LS_FAILURE, unless
+       specified below.
+       (main): Initialize exit failure to LS_FAILURE.
+       (print_dir, gobble_file, get_link_name, xstrcoll):
+       Set exit status to LS_MINOR_PROBLEM if the failure is minor.
+       (print_dir): Do not give up on entire directory merely because readdir
+       returns EOVERFLOW.
+       (usage): Explain exit status.
+       * tests/help-version: ls and variants now exit with status 2
+       on serious trouble.
+
+2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
+
        * NEWS: Document new UTC+HH:MM date syntax, and put date changes
        together.
 
index db3a194bbbc31dae34ee62ae531444310ab90ec3..3d13bd3944475e6c361fe8cc9bb1a74a8abf92a5 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (ls invocation): Document new "ls" exit status.
+
 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        * getdate.texi (Time of day items, Time zone items):