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))
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to