From: Dag-Erling Smørgrav Date: Mon, 13 Oct 2025 19:45:28 +0000 (+0200) Subject: Set umask before testing safe writes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7976476c9f331021b9991b81ea054fbdb7287b39;p=thirdparty%2Flibarchive.git Set umask before testing safe writes Fixes: 27588eba5077 ("Fix replacing a regular file with a dir for ARCHIVE_EXTRACT_SAFE_WRITES") --- 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"));