]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Merge r1017 from libarchive/trunk: Include mode when creating file.
authorTim Kientzle <kientzle@gmail.com>
Thu, 16 Apr 2009 23:59:12 +0000 (19:59 -0400)
committerTim Kientzle <kientzle@gmail.com>
Thu, 16 Apr 2009 23:59:12 +0000 (19:59 -0400)
SVN-Revision: 1020

libarchive/test/test_write_disk_failures.c

index c0e1f8fb9de2153838282a76eac1a74cc28a3ebb..c9dc824e6602308ca3f25413badaee3f9c05d3b1 100644 (file)
@@ -48,7 +48,7 @@ DEFINE_TEST(test_write_disk_failures)
        assertEqualInt(0, mkdir("dir", 0555));
 
        /* Can we? */
-       fd = open("dir/testfile", O_WRONLY | O_CREAT);
+       fd = open("dir/testfile", O_WRONLY | O_CREAT, 0777);
        if (fd >= 0) {
          /* Apparently, we can, so the test below won't work. */
          close(fd);