diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-03-08 05:10:51 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-03-08 05:10:51 +0000 |
commit | 1050e75e55506cedb31cfb4ab8f11e33b7d0936c (patch) | |
tree | 5c0200de7c25571d4e5b719d3ec54e9597a89478 | |
parent | 82279c3ff2f9c1eb40d5a9198e99090f23570e04 (diff) | |
download | FreeBSD-src-1050e75e55506cedb31cfb4ab8f11e33b7d0936c.zip FreeBSD-src-1050e75e55506cedb31cfb4ab8f11e33b7d0936c.tar.gz |
Merge r273 from libarchive.googlecode.com: Use open() correctly.
-rw-r--r-- | usr.bin/tar/test/test_option_T.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/test/test_option_T.c b/usr.bin/tar/test/test_option_T.c index 943182b..493dcc1 100644 --- a/usr.bin/tar/test/test_option_T.c +++ b/usr.bin/tar/test/test_option_T.c @@ -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)) |