]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Do not assume dir atime updates; not everyone does
authorTim Kientzle <kientzle@acm.org>
Fri, 18 Jul 2014 02:56:29 +0000 (19:56 -0700)
committerTim Kientzle <kientzle@acm.org>
Fri, 18 Jul 2014 02:56:29 +0000 (19:56 -0700)
libarchive/test/test_read_disk_directory_traversals.c

index 3ecfbc2d52411af9a26259560bea70c40f77e6bd..2fc45d1bc325eebe27c960adc201730185dc1c13 100644 (file)
@@ -1090,8 +1090,10 @@ test_restore_atime(void)
        failure("There must be no entry");
        assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header2(a, ae));
 
-       failure("Atime should be restored");
-       assertFileAtimeRecent("at");
+       /* On FreeBSD (and likely other systems), atime on
+          dirs does not change when it is read. */
+       /* failure("Atime should be restored"); */
+       /* assertFileAtimeRecent("at"); */
        failure("Atime should be restored");
        assertFileAtimeRecent("at/f1");
        failure("Atime should be restored");