1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-22 23:25:21 +02:00
Commit Graph

11 Commits

Author SHA1 Message Date
Paul Eggert
218fa5c61b Add/fix copyright notices and adjust to latest GNU FDL. 2006-08-17 19:58:17 +00:00
Jim Meyering
112efa81f2 Replace all occurrences of `(exit N); exit' with
`(exit N); exit N'.  Otherwise, those many tests could exit with
improper exit status when exiting via e.g., a trapped interrupt.
Thanks to a report from Bob Proulx.
2004-06-23 15:07:00 +00:00
Jim Meyering
ecc187a433 Quote "$PATH" in PATH=$PATH. 2004-06-21 20:40:58 +00:00
Jim Meyering
d55a463d8b When running as root, be sure to propagate
PATH through to the process we exec as non-root.
2004-06-21 17:06:58 +00:00
Jim Meyering
a458a6984e (my_uid): Use !', not ^' in case pattern `[!0-9]',
since /bin/sh of at least NetBSD 1.6 and OpenBSD 3.2 don't accept `^'.
2003-07-27 20:04:48 +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
a0306325d2 Move setuidgid-related and
NON_ROOT_USERNAME-checking code to this file.
2003-07-16 08:30:06 +00:00
Jim Meyering
f89de05989 Change usage not to use $1.
That's not portable to e.g., Solaris2.6's /bin/sh.
Communicate via an envvar instead.
2001-09-02 15:21:33 +00:00
Jim Meyering
11b02c5e13 finally make it work 2001-08-06 09:50:05 +00:00
Jim Meyering
35559dd156 rename variables 2001-08-05 08:58:52 +00:00
Jim Meyering
273c2c5fbc Renamed from root-only. 2001-08-05 08:42:53 +00:00