summaryrefslogtreecommitdiff
path: root/tests/misc/truncate-owned-by-other.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/truncate-owned-by-other.sh')
-rwxr-xr-xtests/misc/truncate-owned-by-other.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/truncate-owned-by-other.sh b/tests/misc/truncate-owned-by-other.sh
index e70badb6b..f65439ea1 100755
--- a/tests/misc/truncate-owned-by-other.sh
+++ b/tests/misc/truncate-owned-by-other.sh
@@ -29,7 +29,7 @@ chmod g+w root-owned
# Ensure that the current directory is searchable by $NON_ROOT_USERNAME.
chmod g+x .
-chroot --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
truncate -s0 root-owned || fail=1
Exit $fail