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

RDSQFS="@abs_top_builddir@/rdsquashfs"
REFFILE="@abs_top_srcdir@/tests/rdsquashfs/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