]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use open(2) correctly.
authorTim Kientzle <kientzle@gmail.com>
Wed, 10 Dec 2008 21:37:06 +0000 (16:37 -0500)
committerTim Kientzle <kientzle@gmail.com>
Wed, 10 Dec 2008 21:37:06 +0000 (16:37 -0500)
SVN-Revision: 273

tar/test/test_option_T.c

index e0a220b0522c9f6da45dee2ef8212dc75dd5ecfa..23dc4128b75aaa87e31fa428810544fb98c96fc0 100644 (file)
@@ -28,7 +28,7 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/test/test_option_T.c,v 1.3 2008/08/15 06:12:
 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))