diff options
-rwxr-xr-x | bin/ebuild.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 70fffc1ba..b3f34d6ea 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -365,6 +365,8 @@ unpack() { else srcdir="${DISTDIR}/" fi + [ "${x}" != "${x/${DISTDIR}}" ] && \ + die "Arguments to unpack() should not begin with \${DISTDIR}." [ ! -s "${srcdir}${x}" ] && die "$myfail" myfail="failure unpacking ${x}" |