Jim Meyering
c8f1cbc602
(find_mount_point): Emit a diagnostic for each
...
failed syscall, rather than relying on caller to do that.
The caller couldn't do a good job, anyhow -- too many different
ways to fail (each with a different referent).
Give a diagnostic upon failed save_cwd, now that that function
no longer calls `error'.
(show_point): Don't diagnose find_mount_point's errors, now that
it handles them itself.
2003-07-12 16:21:45 +00:00
Jim Meyering
7e815d32f3
tweak spacing
2003-07-12 16:17:14 +00:00
Jim Meyering
959a2409fe
Don't emit diagnostics. Let callers do that.
...
Don't include "error.h".
(save_cwd): Don't call error. Ensure that errno is valid
when returning nonzero.
2003-07-12 16:07:30 +00:00
Jim Meyering
6599007a62
*** empty log message ***
2003-07-12 15:45:14 +00:00
Jim Meyering
21f65c951c
(find_mount_point): Don't let free clobber errno upon failed chdir
2003-07-12 15:44:14 +00:00
Jim Meyering
354996bc09
*** empty log message ***
2003-07-12 11:40:13 +00:00
Jim Meyering
a29f991b84
* src/sys2.h: Remove alloca-related block.
...
* src/system.h: Include <alloca.h> here, instead.
2003-07-12 11:40:03 +00:00
Jim Meyering
64521cfa9a
It appears that the `#pragma alloca' included via "system.h" is
...
adequate, since join.c uses alloca, yet lacked an in-file #pragma.
Remove `#pragma alloca'.
2003-07-12 11:38:43 +00:00
Jim Meyering
1b0d576996
*** empty log message ***
2003-07-12 11:32:31 +00:00
Jim Meyering
b5125cf5f0
*** empty log message ***
2003-07-12 11:31:55 +00:00
Jim Meyering
e5e207df7c
*** empty log message ***
2003-07-12 09:40:44 +00:00
Jim Meyering
d68aa4125b
Update from gnulib.
2003-07-12 09:40:40 +00:00
Jim Meyering
ba53da9675
*** empty log message ***
2003-07-12 08:37:53 +00:00
Jim Meyering
8e34468f61
(change_file_owner): Do not restore any special
...
permission bits (e.g., set-user-ID, set-group-ID) that are reset
by chown(2) on some systems. Suggestion and insistence :-) from
Michael Stone.
2003-07-12 08:37:36 +00:00
Jim Meyering
32a804c941
*** empty log message ***
2003-07-12 07:35:39 +00:00
Jim Meyering
adde093823
(make_path): Enclose diagnostic in _(...).
2003-07-12 07:35:34 +00:00
Jim Meyering
d24393e12d
*** empty log message ***
2003-07-12 07:33:41 +00:00
Jim Meyering
f328802261
Also check `test -t 1'.
...
This is necessary on linux-2.4.21, otherwise, the test
stty/basic-1 would hang when run in the background.
2003-07-12 07:33:35 +00:00
Jim Meyering
4e85b8c0c8
.
2003-07-11 22:26:40 +00:00
Jim Meyering
6f7b4ca60a
ARgh. nearly every test depends on whether stdout and/or stderr is a tty.
2003-07-11 21:57:18 +00:00
Jim Meyering
ae90f9f16e
*** empty log message ***
2003-07-11 20:45:10 +00:00
Jim Meyering
6d7db642c3
Add src/nohup.c and src/setuidgid.c.
2003-07-11 20:45:05 +00:00
Jim Meyering
d4bac14488
*** empty log message ***
2003-07-11 20:41:46 +00:00
Jim Meyering
1d2f905052
(nohup.1): Depend on nohup.c, rather than nohup.sh.
2003-07-11 20:41:35 +00:00
Jim Meyering
eabefdb575
.
2003-07-11 20:40:56 +00:00
Jim Meyering
cb88f838b9
*** empty log message ***
2003-07-11 20:40:41 +00:00
Jim Meyering
a79673ff2a
Also fail if cat-to-create-expected-output
...
fails. Otherwise, if both `exp' and `out' end up empty because
of e.g., a full disk, they would mistakenly compare equal.
2003-07-11 20:40:28 +00:00
Jim Meyering
6568f37384
*** empty log message ***
2003-07-11 20:38:52 +00:00
Jim Meyering
96f7791a8b
.
2003-07-11 20:38:23 +00:00
Jim Meyering
0f46c3a0aa
(EXTRA_SCRIPTS): Remove definition.
...
(bin_PROGRAMS): Add nohup.
(EXTRA_DIST): Remove nohup.sh.
(all_programs): Remove use of $(EXTRA_SCRIPTS).
2003-07-11 20:37:15 +00:00
Jim Meyering
326b48f041
(TESTS): Add nohup.
2003-07-11 20:35:29 +00:00
Jim Meyering
6f7e60b1f4
tests for the new nohup.c
2003-07-11 20:34:58 +00:00
Jim Meyering
761fec62a5
*** empty log message ***
2003-07-11 20:34:35 +00:00
Jim Meyering
8db77b8978
New file. Rewrite of nohup.sh in C.
...
This solves a portability problem: on at least Solaris systems,
when nohup.sh used the vendor /bin/sh, it would exit with status
of `1' rather than the required 126 or 127 upon failure to exec
the specified program.
2003-07-11 20:34:29 +00:00
Jim Meyering
9c557c0a27
*** empty log message ***
2003-07-11 11:12:53 +00:00
Jim Meyering
d111de83e5
*** empty log message ***
2003-07-11 11:12:48 +00:00
Jim Meyering
e1584f504f
(diagnose_copy_fd_failure): New function, renamed from
...
the macro, COPY_FD_DIAGNOSE.
(diagnose_copy_fd_failure): Enclose diagnostic in _(...).
(head_file): Likewise.
2003-07-11 11:12:44 +00:00
Jim Meyering
1dae2a560a
(change_attributes): Enclose diagnostic in _(...).
2003-07-11 11:10:53 +00:00
Jim Meyering
208b8da666
(batch_convert): Use the quote function rather than using literal `...' in
...
a diagnostic.
2003-07-11 10:38:39 +00:00
Jim Meyering
7c6b61d57d
Include "quote.h".
...
Use the quote function rather than using literal `...' in a diagnostic.
2003-07-11 10:37:21 +00:00
Jim Meyering
63861fc012
(main): Enclose diagnostic in _(...).
2003-07-11 10:35:38 +00:00
Jim Meyering
53cca5451c
(main): Enclose diagnostic in _(...).
2003-07-11 10:34:50 +00:00
Jim Meyering
4927015380
(tac_seekable): Enclose diagnostic in _(...).
2003-07-11 10:34:08 +00:00
Jim Meyering
e96ddb3907
(main): Enclose diagnostic in _(...).
2003-07-11 10:33:12 +00:00
Jim Meyering
b8760e0f09
(main): Enclose diagnostic in _(...).
2003-07-11 10:18:45 +00:00
Jim Meyering
f37e7c032a
(main): Enclose diagnostic in _(...).
2003-07-11 10:17:53 +00:00
Jim Meyering
112cba9a8b
.
2003-07-11 06:07:04 +00:00
Jim Meyering
ff443fffa3
*** empty log message ***
2003-07-10 20:43:48 +00:00
Jim Meyering
5b9ea05b6a
Include "posixver.h".
...
(parse_user_spec): Accept `.' as a separator only in pre-POSIX-200112 mode.
2003-07-10 20:43:42 +00:00
Jim Meyering
c9ed2d4e4b
*** empty log message ***
2003-07-10 20:42:52 +00:00