git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / tests / cli-tests / file-stat / compress-file-to-dir-without-write-perm.sh
diff --git a/deps/libchdr/deps/zstd-1.5.5/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh b/deps/libchdr/deps/zstd-1.5.5/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh
new file mode 100755 (executable)
index 0000000..1aa4525
--- /dev/null
@@ -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