summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-03-08 05:19:36 +0000
committerkientzle <kientzle@FreeBSD.org>2009-03-08 05:19:36 +0000
commit4d11395f6512783b51409c335f28f791bf3a7916 (patch)
tree2bbe92f7e7c527de606696149f4ba1781151ec31 /usr.bin/tar
parent3b0a25ce9e75c6ac0f7d2a015e84ed55e5f94fa1 (diff)
downloadFreeBSD-src-4d11395f6512783b51409c335f28f791bf3a7916.zip
FreeBSD-src-4d11395f6512783b51409c335f28f791bf3a7916.tar.gz
Merge r374 from libarchive.googlecode.com: Stupid typo in open() call. <sigh>
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/test/test_strip_components.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/test/test_strip_components.c b/usr.bin/tar/test/test_strip_components.c
index 0cfea18..0f98dfc 100644
--- a/usr.bin/tar/test/test_strip_components.c
+++ b/usr.bin/tar/test/test_strip_components.c
@@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$");
static int
touch(const char *fn)
{
- int fd = open(fn, O_RDWR | O_CREAT | 0644);
+ 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))
OpenPOWER on IntegriCloud