Your message dated Thu, 6 Oct 2022 08:23:24 +0200
with message-id <yz50xfj9akdcr...@alf.mars>
and subject line Re: Bug#993161: pam: some remaining changes for DPKG_ROOT
has caused the Debian Bug report #1019409,
regarding decide whether pam should support DPKG_ROOT
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1019409: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019409
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: pam
Version: 1.4.0-10
Severity: normal
Tags: patch
Hi Sam & Steve,
thanks a lot for fixing #983427!
Unfortunately, only the patch in the original message got applied in
1.4.0-10 but I posted an updated patch in message #23 of that bug.
I attached a patch containing the remaining required changes.
Thanks!
cheers, josch
diff -Nru pam-1.4.0/debian/libpam-modules.postinst
pam-1.4.0/debian/libpam-modules.postinst
--- pam-1.4.0/debian/libpam-modules.postinst 2021-01-30 23:09:52.000000000
+0100
+++ pam-1.4.0/debian/libpam-modules.postinst 2021-08-28 07:49:06.000000000
+0200
@@ -5,16 +5,16 @@
if [ -z "$2" ] || dpkg --compare-versions "$2" lt 0.99.7.1-3
then
- if ! [ -f /etc/security/opasswd ]; then
+ if ! [ -f "$DPKG_ROOT/etc/security/opasswd" ]; then
umask 066
- touch /etc/security/opasswd
+ touch "$DPKG_ROOT/etc/security/opasswd"
umask 022
fi
fi
-if dpkg --compare-versions "$2" lt 0.99.9.0-1 && ! [ -f /etc/environment ]
+if dpkg --compare-versions "$2" lt 0.99.9.0-1 && ! [ -f
"$DPKG_ROOT/etc/environment" ]
then
- touch /etc/environment
+ touch "$DPKG_ROOT/etc/environment"
fi
if dpkg --compare-versions "$2" lt-nl 1.1.2-1 \
diff -Nru pam-1.4.0/debian/libpam-runtime.postinst
pam-1.4.0/debian/libpam-runtime.postinst
--- pam-1.4.0/debian/libpam-runtime.postinst 2021-08-26 21:43:23.000000000
+0200
+++ pam-1.4.0/debian/libpam-runtime.postinst 2021-08-28 07:49:06.000000000
+0200
@@ -20,9 +20,9 @@
for configfile in common-auth common-account common-session \
common-password
do
- if [ -f /etc/pam.d/$configfile ] && \
+ if [ -f "$DPKG_ROOT/etc/pam.d/$configfile" ] && \
! fgrep -q $(calculate_md5sum $configfile) \
- /usr/share/pam/$configfile.md5sums 2>/dev/null
+ "$DPKG_ROOT/usr/share/pam/$configfile.md5sums" 2>/dev/null
then
force=
fi
--- End Message ---
--- Begin Message ---
Hi Steve,
On Wed, Oct 05, 2022 at 04:41:02PM -0700, Steve Langasek wrote:
> No need to wait on the TC at all; your post and the subsequent discussion on
> debian-devel (and -policy) addresses my concerns, thank you. At this point
> committing and uploading is blocked only on me having the time to context
> switch, review the diff (because I deeply trust Sam's technical judgement,
> nevertheless won't commit/upload something in my own name without looking at
> it myself for accountability purposes), and upload. I hope I might get this
> done this week.
Thank you for pam/1.5.2-2. I'm closing the CTTE bug accordingly as it
needs no further action.
Helmut
--- End Message ---