From 854b89183642bc7d9ae36cdfab6fdb52125887c6 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 16 Apr 2009 19:59:12 -0400 Subject: [PATCH] Merge r1017 from libarchive/trunk: Include mode when creating file. SVN-Revision: 1020 --- libarchive/test/test_write_disk_failures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/test/test_write_disk_failures.c b/libarchive/test/test_write_disk_failures.c index c0e1f8fb9..c9dc824e6 100644 --- a/libarchive/test/test_write_disk_failures.c +++ b/libarchive/test/test_write_disk_failures.c @@ -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); -- 2.47.3