summaryrefslogtreecommitdiff
path: root/automake.in
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-10-18 10:08:15 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-10-18 10:08:15 +0200
commitb9cf117b19fb91b3931e9bad064be6beca19240a (patch)
tree7bf940a544b84df71e27bc45d5dafdfc5dd4531c /automake.in
parent9c0bda6240dce5262fc4b4b28b26db8cd840cd57 (diff)
downloadautomake-b9cf117b19fb91b3931e9bad064be6beca19240a.tar.gz
Diagnose unsupported uses of `backname' helper function.
* automake.in (backname): Error out if the path points outside the directory it started in. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'automake.in')
-rwxr-xr-xautomake.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/automake.in b/automake.in
index 4e5348478..335fe130a 100755
--- a/automake.in
+++ b/automake.in
@@ -1053,7 +1053,8 @@ sub backname ($)
next if $_ eq '.' || $_ eq '';
if ($_ eq '..')
{
- pop @res;
+ pop @res
+ or prog_error ("trying to reverse path `$file' pointing outside tree");
}
else
{