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=36644e7d3041f403ae18af45ff6b13a51a8378ae

commit 36644e7d3041f403ae18af45ff6b13a51a8378ae
Author: Guillem Jover <[email protected]>
AuthorDate: Wed May 29 18:37:50 2019 +0200

    dpkg-deb: Honor --nocheck when building packages with newlines in filenames
    
    Fixes: commit 438db7a31e074691e70e8ace7fff91631030624b
    Closes: #929727
    Stable-Candidate: 1.18.x
---
 debian/changelog | 2 ++
 dpkg-deb/build.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 66736acdd..bd19a80f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ dpkg (1.19.7) UNRELEASED; urgency=medium
     the one checking trigger cycles when deferring trigger processing due to
     unsatisfiable dependencies. Closes: #928429
   * dpkg-deb: Validate ar member magic before normalizing any of its fields.
+  * dpkg-deb: Honor --nocheck when building packages with newlines in
+    filenames. Regression introduced in dpkg 1.18.1. Closes: #929727
 
   [ Updated programs translations ]
   * Catalan (Guillem Jover).
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 68d187511..3317b517a 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -168,7 +168,7 @@ file_treewalk_feed(const char *dir, int fd_out)
 
     nodename = str_fmt("./%s", virtname);
 
-    if (strchr(nodename, '\n'))
+    if (!nocheckflag && strchr(nodename, '\n'))
       ohshit(_("newline not allowed in pathname '%s'"), nodename);
 
     /* We need to reorder the files so we can make sure that symlinks

-- 
Dpkg.Org's dpkg

Reply via email to