From: Ralf Wildenhues Date: Sat, 18 Oct 2008 08:08:15 +0000 (+0200) Subject: Diagnose unsupported uses of `backname' helper function. X-Git-Tag: v1.10b~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9cf117b19fb91b3931e9bad064be6beca19240a;p=thirdparty%2Fautomake.git 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 --- diff --git a/ChangeLog b/ChangeLog index 946aef794..45c8e3dc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-18 Ralf Wildenhues + + Diagnose unsupported uses of `backname' helper function. + * automake.in (backname): Error out if the path points outside + the directory it started in. + 2008-10-12 Ralf Wildenhues Nicer 'make dist' output. 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 {