summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2008-08-24 05:24:52 +0000
committerkientzle <kientzle@FreeBSD.org>2008-08-24 05:24:52 +0000
commite1a151cc51dcf09db331219054e794c80482687d (patch)
tree6700ecc478e6f5e6e989f8bcc99f8434f52b1c0e /usr.bin
parent7fa5a7249fd57b8d7dd4f1cc082d5becb14a68c4 (diff)
downloadFreeBSD-src-e1a151cc51dcf09db331219054e794c80482687d.zip
FreeBSD-src-e1a151cc51dcf09db331219054e794c80482687d.tar.gz
Update the passthrough_dotdot test to reproduce a
problem reported by Kris Kennaway. PR: bin/124924
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cpio/test/test_passthrough_dotdot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/cpio/test/test_passthrough_dotdot.c b/usr.bin/cpio/test/test_passthrough_dotdot.c
index bfa0eec..b4466f7 100644
--- a/usr.bin/cpio/test/test_passthrough_dotdot.c
+++ b/usr.bin/cpio/test/test_passthrough_dotdot.c
@@ -47,6 +47,8 @@ DEFINE_TEST(test_passthrough_dotdot)
assertEqualInt(0, mkdir("dir", 0755));
assertEqualInt(0, chdir("dir"));
+ write(filelist, ".\n", 2);
+
/* File with 10 bytes content. */
fd = open("file", O_CREAT | O_WRONLY, 0642);
assert(fd >= 0);
OpenPOWER on IntegriCloud