diff options
author | Guillem Jover <guillem@debian.org> | 2019-05-29 18:37:50 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-06-03 03:24:04 +0200 |
commit | 36644e7d3041f403ae18af45ff6b13a51a8378ae (patch) | |
tree | 4b3c147573b77befbf61f7c982aaf37b4d3eed54 /dpkg-deb | |
parent | b854bd6029ef632701af1d4411c6f81e265af884 (diff) | |
download | dpkg-36644e7d3041f403ae18af45ff6b13a51a8378ae.tar.gz |
dpkg-deb: Honor --nocheck when building packages with newlines in filenames
Fixes: commit 438db7a31e074691e70e8ace7fff91631030624b
Closes: #929727
Stable-Candidate: 1.18.x
Diffstat (limited to 'dpkg-deb')
-rw-r--r-- | dpkg-deb/build.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |