This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ce09f4e6952fd9edbb8b463fb3476eb4dacd712d

commit ce09f4e6952fd9edbb8b463fb3476eb4dacd712d
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Jul 6 12:27:29 2020 +0200

    Dpkg::Path: Improve directory traversal error message to include target
    
    We should print what the canonicalized pathname is, to help the user
    better understand the error.
---
 scripts/Dpkg/Path.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/Dpkg/Path.pm b/scripts/Dpkg/Path.pm
index ce55b5a54..1fc7cc786 100644
--- a/scripts/Dpkg/Path.pm
+++ b/scripts/Dpkg/Path.pm
@@ -221,7 +221,8 @@ sub check_directory_traversal {
         my $canon_pathname = realpath($_);
         return if $canon_pathname =~ m/^\Q$canon_basedir\E/;
 
-        error(g_("pathname '%s' points outside source root"), $_);
+        error(g_("pathname '%s' points outside source root (to '%s')"),
+              $_, $canon_pathname);
     };
 
     find({

-- 
Dpkg.Org's dpkg

Reply via email to