File libarchive-2.5.5_fix_testsuite.patch of Package bsdtar

Index: tar/test/test_option_T.c
===================================================================
--- tar/test/test_option_T.c.orig	2008-05-29 07:27:46.000000000 +0200
+++ tar/test/test_option_T.c	2008-09-06 17:45:07.496292842 +0200
@@ -28,7 +28,7 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/test
 static int
 touch(const char *fn)
 {
-	int fd = open(fn, O_RDWR | O_CREAT);
+	int fd = open(fn, O_RDWR | O_CREAT, 0644);
 	failure("Couldn't create file '%s', fd=%d, errno=%d (%s)\n",
 	    fn, fd, errno, strerror(errno));
 	if (!assert(fd > 0))
openSUSE Build Service is sponsored by