aboutsummaryrefslogtreecommitdiff
path: root/bin/rdsquashfs/test/pathtraversal.sh.in
blob: 5b19c4d3d30382c1df505ce06e121d4232d89029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

RDSQFS="@abs_top_builddir@/rdsquashfs"
REFFILE="@abs_top_srcdir@/bin/rdsquashfs/test/pathtraversal.sqfs"
GOTCHA="/tmp/gotcha.txt"

if "$RDSQFS" -u / -p . "$REFFILE"; then
	if [ -e "$GOTCHA" ]; then
		echo "Found $GOTCHA which should not be there"
		exit 1
	fi
fi