LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libarchive-fix_tests.patch of Package libarchive (Project home:mgerlach1:libarchive)

--- libarchive/test/test_write_disk_failures.c.orig	2009-05-01 12:18:24.000000000 +0200
+++ libarchive/test/test_write_disk_failures.c	2009-05-01 12:18:50.000000000 +0200
@@ -48,7 +48,7 @@
 	assertEqualInt(0, mkdir("dir", 0555));
 
 	/* Can we? */
-	fd = open("dir/testfile", O_WRONLY | O_CREAT);
+	fd = open("dir/testfile", O_WRONLY | O_CREAT, 0600);
 	if (fd >= 0) {
 	  /* Apparently, we can, so the test below won't work. */
 	  close(fd);