Package: dash
Version: 0.5.8-2.3

The file /var/lib/dpkg/info/dash.md5sums has mode 0664 rather than the
expected 0644, see also the control-file-has-bad-permissions lintian
error.  That's because it is created via shell redirection, meaning the
permissions depend on the umask.

I have attached a patch which fixes that.  If only there was some helper
program[1] which could take care of such boring details automatically!


1. https://manpages.debian.org/cgi-bin/man.cgi?query=dh_md5sums

diff -u dash-0.5.8/debian/implicit dash-0.5.8/debian/implicit
--- dash-0.5.8/debian/implicit
+++ dash-0.5.8/debian/implicit
@@ -92,6 +92,7 @@
 	@cd debian/$* && find * -path 'DEBIAN' -prune -o \
 	  -type f -print0 | LC_ALL=C sort -z | \
 	    xargs -0r md5sum >>DEBIAN/md5sums
+	@chmod 0644 debian/*/DEBIAN/md5sums
 %.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \
 	  %.deb-DEBIAN-md5sums
 	: debian/$*/DEBIAN/ ok

Reply via email to