]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Windows fixes.
authorTim Kientzle <kientzle@gmail.com>
Mon, 27 Jul 2009 04:18:20 +0000 (00:18 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 27 Jul 2009 04:18:20 +0000 (00:18 -0400)
SVN-Revision: 1290

libarchive/test/test_write_disk.c

index 07fece8694457ab3493fe44c82a3ea6305842ca3..bf77d5314a9af894bfa3aef933b3a80f80d4637e 100644 (file)
@@ -50,9 +50,9 @@ static void create(struct archive_entry *ae, const char *msg)
            st.st_mode, archive_entry_mode(ae));
        /* When verifying a dir, ignore the S_ISGID bit, as some systems set
         * that automatically. */
+#if !defined(_WIN32) || defined(__CYGWIN__)
        if (archive_entry_filetype(ae) == AE_IFDIR)
                st.st_mode &= ~S_ISGID;
-#if !defined(_WIN32) || defined(__CYGWIN__)
        assertEqualInt(st.st_mode, archive_entry_mode(ae) & ~UMASK);
 #endif
 }