From: Tim Kientzle Date: Sat, 29 Aug 2009 17:37:21 +0000 (-0400) Subject: This test requires a certain umask() setting but doesn't actually X-Git-Tag: v2.8.0~102^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03466ff710f355af81bd0138b9ae0f77ce594334;p=thirdparty%2Flibarchive.git This test requires a certain umask() setting but doesn't actually set it. Since the immediately preceding test does set umask(), this only shows up if you run this test by itself. (Or at least first.) SVN-Revision: 1399 --- diff --git a/libarchive/test/test_write_disk_perms.c b/libarchive/test/test_write_disk_perms.c index e898fc40a..054da81a8 100644 --- a/libarchive/test/test_write_disk_perms.c +++ b/libarchive/test/test_write_disk_perms.c @@ -132,6 +132,8 @@ DEFINE_TEST(test_write_disk_perms) struct archive_entry *ae; struct stat st; + umask(UMASK); + /* * Set ownership of the current directory to the group of this * process. Otherwise, the SGID tests below fail if the