From: Todd C. Miller Date: Mon, 12 Mar 2012 19:04:03 +0000 (-0400) Subject: Fix application of debian-specific sudoers mods when building packages X-Git-Tag: SUDO_1_8_5~1^2~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa99904b20312df28de0b04d6e8ff8669303ca55;p=sudo Fix application of debian-specific sudoers mods when building packages as non-root. --- diff --git a/sudo.pp b/sudo.pp index 54e3410a1..f846a8be5 100644 --- a/sudo.pp +++ b/sudo.pp @@ -161,6 +161,7 @@ still allow people to get their work done." %if [deb] # Uncomment some Defaults and the %sudo rule in sudoers # Note that the order must match that of sudoers and be tab-indented. + chmod u+w ${pp_destdir}${sudoersdir}/sudoers /bin/ed - ${pp_destdir}${sudoersdir}/sudoers <<-'EOF' /Locale settings/+1,s/^# // /X11 resource/+1,s/^# // @@ -168,6 +169,7 @@ still allow people to get their work done." w q EOF + chmod u-w ${pp_destdir}${sudoersdir}/sudoers mkdir -p ${pp_destdir}/etc/pam.d cat > ${pp_destdir}/etc/pam.d/sudo <<-EOF #%PAM-1.0