summaryrefslogtreecommitdiff
path: root/tests/priv-check
AgeCommit message (Collapse)Author
2004-06-23Replace all occurrences of `(exit N); exit' withJim Meyering
`(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-21Quote "$PATH" in PATH=$PATH.Jim Meyering
2004-06-21When running as root, be sure to propagateJim Meyering
PATH through to the process we exec as non-root.
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