2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Fix application of debian-specific sudoers mods when building packages

as non-root.
This commit is contained in:
Todd C. Miller 2012-03-12 15:04:03 -04:00
parent 749784ea5b
commit fa99904b20

View File

@ -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