From b86265bb65c19fa08133c3eb3db8fbbf1cff3d99 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Wed, 10 Dec 2008 16:37:06 -0500 Subject: [PATCH] Use open(2) correctly. SVN-Revision: 273 --- tar/test/test_option_T.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.47.3