From b9cf117b19fb91b3931e9bad064be6beca19240a Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 18 Oct 2008 10:08:15 +0200 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ automake.in | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 946aef7..45c8e3d 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 4e53484..335fe13 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 { -- 2.7.4