summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh')
-rwxr-xr-x3rdparty/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/3rdparty/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh b/3rdparty/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh
new file mode 100755
index 00000000000..1aa4525fb7d
--- /dev/null
+++ b/3rdparty/zstd/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# motivated by issue #3523
+
+datagen > file
+mkdir out
+chmod 000 out
+
+zstd file -q --trace-file-stat -o out/file.zst
+zstd -tq out/file.zst
+
+chmod 777 out