1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-05-26 20:26:31 +02:00
Commit Graph

16096 Commits

Author SHA1 Message Date
Jim Meyering 1f3c90c6a5 (expected_failure_status_expr): Record that
expr exits with status of 3 for e.g., a write error.
2003-07-19 11:39:22 +00:00
Jim Meyering ae481a2cb7 *** empty log message *** 2003-07-19 11:19:16 +00:00
Jim Meyering 1d510c3f9b Use `id -u' to see if we're running as root,
rather than trying go write to an write-protected file.
When running as root, ensure $NON_ROOT_USERNAME is valid.
When running as root with `require-non-root', ensure that `.'
is writable by $NON_ROOT_USERNAME, then reinvoke $0 set-user-ID
to $NON_ROOT_USERNAME.  If `.' is not writable, then skip the test.
2003-07-19 11:19:12 +00:00
Jim Meyering c321e53e88 *** empty log message *** 2003-07-19 08:17:16 +00:00
Jim Meyering db34cf4ee6 Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
2003-07-19 08:17:06 +00:00
Jim Meyering fe52d65af0 Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
2003-07-19 08:16:38 +00:00
Jim Meyering 3fd76bf433 *** empty log message *** 2003-07-19 08:09:01 +00:00
Jim Meyering 9802c059ff Likewise. Include "closeout.h" right after config.h,
to test that it can stand by itself.  Include "exitfail.h".
Clients should set exit_failure instead.
(EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
2003-07-19 08:08:56 +00:00
Jim Meyering 2925e558cb (close_stdout_set_status, close_stdout_status): Remove. 2003-07-19 08:05:44 +00:00
Jim Meyering 8ed1e0ab9a *** empty log message *** 2003-07-18 18:08:08 +00:00
Jim Meyering eea7d0c8da (memcoll) [!HAVE_STRCOLL]: Clear errno. 2003-07-18 18:07:48 +00:00
Jim Meyering d2cc1e9856 *** empty log message *** 2003-07-18 09:58:59 +00:00
Jim Meyering 05b4128b5d Update to use newer framework. 2003-07-18 09:48:16 +00:00
Jim Meyering c42d31bc78 Use $srcdir/../priv-check, create a temporary
directory, and remove Perl-coded `you may not run as root' test.
2003-07-18 09:12:23 +00:00
Jim Meyering 10c48512f0 Use $srcdir/../priv-check, rather than
hard-coding something not quite equivalent.  Reported by Paul Jarc.
2003-07-18 09:05:49 +00:00
Jim Meyering 8dd15f024c *** empty log message *** 2003-07-18 08:53:32 +00:00
Jim Meyering 1d7432c0ef (main): Use close_stdout via atexit.
Now `sort --version' and `sort --help' fail, as they should
when their output is redirected to /dev/full.
2003-07-18 08:53:05 +00:00
Jim Meyering ec5c04d7d8 (usage): Don't call close_stdout here.
(main): Use close_stdout via atexit.
Now `su --version > /dev/full' fails, as it should.
Somehow, the change of 2000-05-07 that purports to fix this
was not checked in.
2003-07-18 08:38:43 +00:00
Jim Meyering c03aeeae23 *** empty log message *** 2003-07-18 08:38:29 +00:00
Jim Meyering 429c70029c *** empty log message *** 2003-07-18 08:12:00 +00:00
Jim Meyering daced4a5fb (--help/--version vs. /dev/full): Special-case
`[' to protect it from expected_failure_status-`eval'.
2003-07-18 08:11:55 +00:00
Jim Meyering 0f16eafda9 *** empty log message *** 2003-07-18 08:01:36 +00:00
Jim Meyering 4efc97aa9f (101, 102): Update tests of -c accordingly. 2003-07-18 08:01:26 +00:00
Jim Meyering 66021e0b0f *** empty log message *** 2003-07-18 07:50:45 +00:00
Jim Meyering 7bb7cd570a (expr invocation): Exit status is 2 if the
expression is syntactically invalid, 3 if there is some other error.
This change is for conformance to POSIX.
2003-07-18 07:50:39 +00:00
Jim Meyering 5a323d4063 *** empty log message *** 2003-07-18 07:49:36 +00:00
Jim Meyering e4584fcd73 *** empty log message *** 2003-07-18 07:48:37 +00:00
Jim Meyering 7f1636878f (writeline): Use a SPACE, not a TAB between the
count and the corresponding line, as required by POSIX.
2003-07-18 07:47:05 +00:00
Jim Meyering 470285bb48 *** empty log message *** 2003-07-18 07:46:27 +00:00
Jim Meyering dafa884427 *** empty log message *** 2003-07-18 07:29:45 +00:00
Jim Meyering c7e335bcda Add tests when exit status is 2. 2003-07-18 07:29:01 +00:00
Jim Meyering 7a0ebf5a7b Invalid value exits with status 3, not 2. 2003-07-18 07:25:39 +00:00
Jim Meyering 30d8071d60 Include "exitfail.h".
(main): Set exit_failure, not xalloc_exit_failure and xmemcoll_exit_failure.
2003-07-18 07:23:38 +00:00
Jim Meyering 1eaf0e9870 Include "exitfail.h", "quotearg.h".
(EXPR_INVALID, EXPR_ERROR): New constants.
(nomoreargs, null, toarith, nextarg): Return bool, not int.
(syntax_error): New function, exiting with status 2.  Use it
insteading of printing "syntax error" ourselves.
(main): Initialize exit_failure to EXPR_ERROR.
Exit with EXPR_INVALID on syntax error (too few arguments).
(nextarg): Use strcmp, not strcoll; strcoll might return
an undesirable 0, or might fail.
(docolon, eval4, eval3): Exit with status 3 on invalid argument type
or other such error.
(eval2): Report an error if strcoll fails in a string comparison.
2003-07-18 07:22:38 +00:00
Jim Meyering e992d666e1 (NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE):
Use an anonymous `enum', rather than #define.
2003-07-18 07:18:54 +00:00
Jim Meyering 309d778d05 *** empty log message *** 2003-07-18 07:12:27 +00:00
Jim Meyering 3ca9cb979e Merge with gnulib. Use a single exit_failure variable rather
than a separate one for each module.
2003-07-18 07:12:20 +00:00
Jim Meyering f73bf4c5d3 Merge with gnulib. Use a single exit_failure variable rather
than a separate one for each module.
2003-07-18 07:11:50 +00:00
Jim Meyering 45a5d9f023 Merge with gnulib. Use a single exit_failure variable rather
than a separate one for each module.
2003-07-18 07:10:53 +00:00
Jim Meyering 393c48ec79 Merge with gnulib. Use a single exit_failure variable rather
than a separate one for each module.
2003-07-18 07:02:34 +00:00
Jim Meyering 8a4cf4bcfc *** empty log message *** 2003-07-18 06:59:33 +00:00
Jim Meyering c7cbe29307 *** empty log message *** 2003-07-18 06:50:03 +00:00
Jim Meyering a73e45f9d3 . 2003-07-18 06:34:14 +00:00
Jim Meyering 3497dfc9c1 . 2003-07-17 22:27:44 +00:00
Jim Meyering 2d7fe7786b *** empty log message *** 2003-07-16 20:51:08 +00:00
Jim Meyering 0cd3fbee59 *** empty log message *** 2003-07-16 20:50:30 +00:00
Jim Meyering 64cdeb8d39 Use 5.0.90, rather than 5.0.2, per GNU maintainer
guidelines.  The next non-beta release will be 5.1.
2003-07-16 20:50:21 +00:00
Jim Meyering a9d48f53d5 *** empty log message *** 2003-07-16 20:07:47 +00:00
Jim Meyering ce5b4fc9f7 *** empty log message *** 2003-07-16 20:07:37 +00:00
Jim Meyering f373160c3d This script would have caught at least two recent bugs: those in [ and kill.
Revive this script.
It wasn't doing anything useful, since $all_programs wasn't being
defined by the invoking Makefile.am.
Reflect that nohup is no longer a script, so don't exclude it.
Add framework to handle the programs added since it was last run:
kill, stat, unlink, [, link, readlink.
Fix path-related problems deriving from the move of this script
from src/ to its present location.
2003-07-16 19:54:13 +00:00