diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-08-26 10:22:44 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-08-26 10:23:06 -0700 |
commit | 0adf4027f5859235c2e3bb61b564c95ec018fe61 (patch) | |
tree | 1a0d634317c38ad101c8ec07166e35e8d1a65fb7 /tests/extrac09.at | |
parent | fce1c1c8cbb4a3df303ae01b33459197cb42c557 (diff) | |
download | tar-0adf4027f5859235c2e3bb61b564c95ec018fe61.tar.gz |
tar: avoid assumptions about root access and chmod -w in test cases
* tests/extrac07.at, tests/extrac09.at, tests/listed03.at: Use
AT_UNPRIVILEGED_PREREQ, since this test requires non-root
privileges.
* tests/extrac07.at: Don't use "chmod -w", as POSIX says it's not
portable to start a chmod permissions-list with "-" as it may be
confused with an option. Use "chmod a-w" instead.
Diffstat (limited to 'tests/extrac09.at')
-rw-r--r-- | tests/extrac09.at | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/extrac09.at b/tests/extrac09.at index 4506c04d..8241c30a 100644 --- a/tests/extrac09.at +++ b/tests/extrac09.at @@ -23,6 +23,8 @@ AT_SETUP([no need to save dir with unreadable . and ..]) AT_KEYWORDS([extract extrac09]) AT_TAR_CHECK([ +AT_UNPRIVILEGED_PREREQ + mkdir dir mkdir dir/sub mkdir dir/sub/extract |