aboutsummaryrefslogtreecommitdiff
path: root/test/008-unwritable-outfile.test
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-05 21:28:07 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-05 21:28:07 +1200
commit1e52dff3276810c633a2ad5dd3b010ee97a6331a (patch)
tree2d5701930a17845fa6c6ba1d974518b9a9468f00 /test/008-unwritable-outfile.test
parentc8c27f7d8683403c49f5a440b29916ad6a0a1f91 (diff)
downloadcue-bin-split-1e52dff3276810c633a2ad5dd3b010ee97a6331a.tar.xz
Remove free filename format due to vulnerability
Diffstat (limited to 'test/008-unwritable-outfile.test')
-rwxr-xr-xtest/008-unwritable-outfile.test/run.sh8
-rw-r--r--test/008-unwritable-outfile.test/stderr.expected1
2 files changed, 4 insertions, 5 deletions
diff --git a/test/008-unwritable-outfile.test/run.sh b/test/008-unwritable-outfile.test/run.sh
index c8f1b4c..60336ae 100755
--- a/test/008-unwritable-outfile.test/run.sh
+++ b/test/008-unwritable-outfile.test/run.sh
@@ -1,13 +1,13 @@
#!/bin/sh
-touch track.raw
-chmod -w track.raw
+touch 001-track.raw
+chmod -w 001-track.raw
-echo -e '0:0:0\n1:0:0' | ${EXECUTABLE} -r 1 -c 1 -i /dev/null -s 1 -f track.raw
+echo -e '0:0:0\n1:0:0' | ${EXECUTABLE} -r 1 -c 1 -i /dev/null -s 1 -n -track.raw
if [ $? -eq 0 ]; then
exit 1
else
- rm -f track.raw
+ rm -f 001-track.raw
exit 0
fi
diff --git a/test/008-unwritable-outfile.test/stderr.expected b/test/008-unwritable-outfile.test/stderr.expected
deleted file mode 100644
index 37328e8..0000000
--- a/test/008-unwritable-outfile.test/stderr.expected
+++ /dev/null
@@ -1 +0,0 @@
-Failed to open 'track.raw': fopen: Permission denied