Skip to content

Commit b255b2e

Browse files
committed
Adding temporary root owned file in tmp folder for eperm test
1 parent b2d1117 commit b255b2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

util/build-gnu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,8 @@ test \$n_stat1 -ge \$n_stat2 \\' tests/ls/stat-free-color.sh
350350
# * the selinux crate is handling errors
351351
# * the test says "maybe we should not fail when no context available"
352352
"${SED}" -i -e "s|returns_ 1||g" tests/cp/no-ctx.sh
353+
354+
# Create a file not owned by current user for fail-eperm test
355+
if command -v sudo >/dev/null 2>&1; then
356+
sudo touch /tmp/root-owned-file 2>/dev/null || true
357+
fi

0 commit comments

Comments
 (0)