From: Tim Kientzle Date: Wed, 10 Dec 2008 21:37:06 +0000 (-0500) Subject: Use open(2) correctly. X-Git-Tag: v2.6.0~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b86265bb65c19fa08133c3eb3db8fbbf1cff3d99;p=thirdparty%2Flibarchive.git Use open(2) correctly. SVN-Revision: 273 --- diff --git a/tar/test/test_option_T.c b/tar/test/test_option_T.c index e0a220b05..23dc4128b 100644 --- a/tar/test/test_option_T.c +++ b/tar/test/test_option_T.c @@ -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))