]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
test_write_disk_secure: unify ifdefs for lchmod() test
authorMartin Matuska <martin@matuska.org>
Fri, 22 May 2020 10:36:31 +0000 (12:36 +0200)
committerMartin Matuska <martin@matuska.org>
Fri, 22 May 2020 10:37:02 +0000 (12:37 +0200)
libarchive/test/test_write_disk_secure.c

index ff2922a3bf18c085f860374623923e664f807245..44b9ea0d5b212a1b28244309a8871a805f1f3faa 100644 (file)
@@ -40,7 +40,8 @@ DEFINE_TEST(test_write_disk_secure)
        struct archive *a;
        struct archive_entry *ae;
        struct stat st;
-#if defined(HAVE_LCHMOD) && defined(HAVE_SYMLINK)
+#if defined(HAVE_LCHMOD) && defined(HAVE_SYMLINK) && \
+    defined(S_IRUSR) && defined(S_IWUSR) && defined(S_IXUSR)
        int working_lchmod;
 #endif