summaryrefslogtreecommitdiff
path: root/tests/priv-check
AgeCommit message (Collapse)Author
2003-07-27(my_uid): Use `!', not `^' in case pattern `[!0-9]',Jim Meyering
since /bin/sh of at least NetBSD 1.6 and OpenBSD 3.2 don't accept `^'.
2003-07-19Use `id -u' to see if we're running as root,Jim Meyering
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-16Move setuidgid-related andJim Meyering
NON_ROOT_USERNAME-checking code to this file.
2001-09-02Change usage not to use $1.Jim Meyering
That's not portable to e.g., Solaris2.6's /bin/sh. Communicate via an envvar instead.
2001-08-06finally make it workJim Meyering
2001-08-05rename variablesJim Meyering
2001-08-05Renamed from root-only.Jim Meyering