setting exit_failure directly; this optimizes away redundant
assignments.
* src/printenv.c, src/sort.c, src/test.c, src/tty.c: Likewise.
- * src/system.h (initialize_exit_failure): New function.
- Include exitfail.h here, since we refer to exit_failure.
- All callers changed to not include exitfail.h.
* src/chroot.c (main): Exit with status 1 rather than 127
if chroot itself fails, as per documentation.
* src/system.h (EXIT_FAIL, EXIT_CANNOT_INVOKE, EXIT_ENOENT):
New enum values.
(initialize_exit_failure): New inline function.
+ Include exitfail.h here, since we refer to exit_failure.
+ All callers changed to not include exitfail.h.
* src/tty.c (TTY_FAILURE, TTY_WRITE_ERROR): New enum values;
substitute them for the corresponding integer constants.
GNU coreutils NEWS -*- outline -*-
+* Major changes in release 5.1.2 (2004-01-18):
+
+** Bug fixes
+
+ rmdir -p exits with status 1 on error; formerly it sometimes exited
+ with status 0 when given more than one argument.
+
+ nohup now always exits with status 127 when it finds an error,
+ as POSIX requires; formerly it sometimes exited with status 1.
+
+ Several programs (including cut, date, dd, env, hostname, nl, pr,
+ stty, and tr) now always exit with status 1 when they find an error;
+ formerly they sometimes exited with status 2.
+
+ factor no longer reports a usage error if stdin has the wrong format.
+
+
* Major changes in release 5.1.1 (2004-01-17):
** Configuration option