summaryrefslogtreecommitdiff
path: root/tests/touch/now-owned-by-other
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch/now-owned-by-other')
-rwxr-xr-xtests/touch/now-owned-by-other1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/touch/now-owned-by-other b/tests/touch/now-owned-by-other
index e124a2e4a..4ce4ec6de 100755
--- a/tests/touch/now-owned-by-other
+++ b/tests/touch/now-owned-by-other
@@ -34,6 +34,7 @@ chmod g+w root-owned
# Ensure that the current directory is searchable by $NON_ROOT_USERNAME.
chmod g+x .
+fail=0
setuidgid $NON_ROOT_USERNAME env PATH="$PATH" touch -d now root-owned || fail=1
Exit $fail