multicompress with externals sets wrong file modes
authorColin Watson <cjwatson@ubuntu.com>
Thu, 30 Jan 2014 14:08:08 +0000 (14:08 +0000)
committerDavid Kalnischkies <david@kalnischkies.de>
Thu, 6 Feb 2014 16:09:51 +0000 (17:09 +0100)
commitcc130d7114425cc6f8c315e6cbc68be2cb4d3c38
tree09adcb1915b2bfa372f4e0e67c23baf5eb97184e
parentea9e09ef91f688a85d3e04d31163cfe0ef09c59c
multicompress with externals sets wrong file modes

Copy from the bug description:
After we upgraded the Ubuntu master archive from lucid to precise, we
noticed that Translation-en.bz2 was being written with mode 0600 rather
than 0644, which broke our mirroring.  This is no longer reproducible as
such in unstable because apt now links against libbz2, but it's still
reproducible with xz; it happens because multicompress fchmods one end
of the compression pipe in this case rather than the target file.

[Original testcase slightly modified to comply with house-style]

Closes: 737130
ftparchive/multicompress.cc
test/integration/test-bug-737130-multicompress-file-modes [new file with mode: 0755]