From 7976476c9f331021b9991b81ea054fbdb7287b39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 13 Oct 2025 21:45:28 +0200 Subject: [PATCH] Set umask before testing safe writes Fixes: 27588eba5077 ("Fix replacing a regular file with a dir for ARCHIVE_EXTRACT_SAFE_WRITES") --- tar/test/test_option_safe_writes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tar/test/test_option_safe_writes.c b/tar/test/test_option_safe_writes.c index d30b9a745..ee46923f2 100644 --- a/tar/test/test_option_safe_writes.c +++ b/tar/test/test_option_safe_writes.c @@ -8,6 +8,7 @@ DEFINE_TEST(test_option_safe_writes) { + assertUmask(0); /* Create files */ assertMakeDir("in", 0755); assertEqualInt(0, chdir("in")); -- 2.47.3