]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix test clean-up 1442/head
authorLuis Henriques <lhenriques@suse.de>
Fri, 25 Sep 2020 09:09:44 +0000 (10:09 +0100)
committerLuis Henriques <lhenriques@suse.de>
Fri, 25 Sep 2020 09:12:11 +0000 (10:12 +0100)
On test clean-up an 'rm -rf' will fail because 'lock' and 'lock/lock2'
directories have 0311 permissions.  Change these permissions on exit so
that the directories can be deleted on success.

libarchive/test/test_read_disk_directory_traversals.c

index bbfe91ab8e5ee0ce3ef0bf2031073f4aab2a08e8..9efa74281b124adfc91b4d96b64625f8d47bb471 100644 (file)
@@ -1833,6 +1833,8 @@ test_parent(void)
        }
 
        assertChdir("..");
+       assertChmod("lock", 0755);
+       assertChmod("lock/lock2", 0755);
 
        /* Destroy the disk object. */
        assertEqualInt(ARCHIVE_OK, archive_read_free(a));