Package: dpkg
Version: 1.19.6
Severity: minor

I tried to build a package with \n in filenames, but to no avail:

  dpkg-deb --nocheck --build debian/newline ../newline_1_all.deb
  dpkg-deb: warning: not checking contents of control area
  dpkg-deb: building an unknown package in '../newline_1_all.deb'.
  dpkg-deb: error: newline not allowed in pathname './usr/share/newline/
  '

The man page promises that with the --nocheck option, "you can build any archive you want, no matter how broken", so I expected this to work.

The source package that I used for testing is here:
https://github.com/jwilk/newline.deb

-- System Information:
Architecture: i386

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-9
ii  libc6        2.28-10
ii  liblzma5     5.2.4-1
ii  libselinux1  2.8-1+b1
ii  zlib1g       1:1.2.11.dfsg-1
ii  tar          1.30+dfsg-6

--
Jakub Wilk

Reply via email to