summaryrefslogtreecommitdiff
path: root/regress/bin/pax/t6.sh
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-07-21 22:59:06 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-07-21 22:59:06 +0000
commitfb870e671a3a1214813c3140197ff30443f1e463 (patch)
treec2a7ca3cae1c21cf6db0e363bdfdcea96b0afc9a /regress/bin/pax/t6.sh
parentf179b9898d07f51cd6a5261fad5e384741243bf6 (diff)
Test that "cpio -o" does not segfault when called with no input.
Diffstat (limited to 'regress/bin/pax/t6.sh')
-rw-r--r--regress/bin/pax/t6.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/regress/bin/pax/t6.sh b/regress/bin/pax/t6.sh
new file mode 100644
index 00000000000..ff08466d9d7
--- /dev/null
+++ b/regress/bin/pax/t6.sh
@@ -0,0 +1,6 @@
+# $OpenBSD: t6.sh,v 1.1 2006/07/21 22:59:05 ray Exp $
+# Don't segfault if no file list is given.
+#
+OBJ=$2
+cd ${OBJ}
+cpio -o < /dev/null