]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
This test requires a certain umask() setting but doesn't actually
authorTim Kientzle <kientzle@gmail.com>
Sat, 29 Aug 2009 17:37:21 +0000 (13:37 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 29 Aug 2009 17:37:21 +0000 (13:37 -0400)
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

libarchive/test/test_write_disk_perms.c

index e898fc40a7194806610989225b285924ee079648..054da81a8e27160a1c11508a82ed578dd84e132c 100644 (file)
@@ -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