summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-28 22:57:39 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:20 -0800
commit14b2082ebf97130666e2841bb7653fdcadf584bd (patch)
tree882cd961f420066bf3b57244065bb604e95bf537
parent2526c272fd267bb71314c4b2bf57227e480c25e6 (diff)
debian/rules: call chgrp *before* calling chmod, lest the sgid bit
on unix_chkpwd be cleared during the build when using -rsudo. Closes: #496983.
-rw-r--r--debian/changelog3
-rwxr-xr-xdebian/rules2
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 0edc3f2d..a94ca710 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ pam (1.0.1-4) UNRELEASED; urgency=low
_unix_blankpasswd when we can detect that null passwords are disallowed,
to avoid causing spammy logs on successful authentications.
Closes: #496620.
+ * debian/rules: call chgrp *before* calling chmod, lest the sgid bit
+ on unix_chkpwd be cleared during the build when using -rsudo.
+ Closes: #496983.
-- Julien Cristau <jcristau@debian.org> Thu, 21 Aug 2008 00:03:56 +0200
diff --git a/debian/rules b/debian/rules
index dade1a29..edac90c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -135,8 +135,8 @@ binary-arch: install
dh_strip -a
dh_compress -a
dh_fixperms -a
- chmod 02755 $(d)/libpam-modules/sbin/unix_chkpwd
chgrp shadow $(d)/libpam-modules/sbin/unix_chkpwd
+ chmod 02755 $(d)/libpam-modules/sbin/unix_chkpwd
dh_makeshlibs -plibpam0g -V "libpam0g (>= 0.99.10.0)"
dh_installdeb -a
dh_shlibdeps -a -L libpam0g -l$(CURDIR)/debian/libpam0g/lib