1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-18 09:46:33 +02:00
Commit Graph

7 Commits

Author SHA1 Message Date
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