svn commit: r189510 - head/usr.bin/tar/test

Tim Kientzle kientzle at FreeBSD.org
Sat Mar 7 21:10:51 PST 2009


Author: kientzle
Date: Sun Mar  8 05:10:51 2009
New Revision: 189510
URL: http://svn.freebsd.org/changeset/base/189510

Log:
  Merge r273 from libarchive.googlecode.com:  Use open() correctly.

Modified:
  head/usr.bin/tar/test/test_option_T.c

Modified: head/usr.bin/tar/test/test_option_T.c
==============================================================================
--- head/usr.bin/tar/test/test_option_T.c	Sun Mar  8 05:01:39 2009	(r189509)
+++ head/usr.bin/tar/test/test_option_T.c	Sun Mar  8 05:10:51 2009	(r189510)
@@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$");
 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))


More information about the svn-src-all mailing list