]> granicus.if.org Git - sudo/commitdiff
Fix application of debian-specific sudoers mods when building packages
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 12 Mar 2012 19:04:03 +0000 (15:04 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 12 Mar 2012 19:04:03 +0000 (15:04 -0400)
as non-root.

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 54e3410a1bad5b8495c58d22cedc78cc51a70c18..f846a8be5c96d44fbe5f92dff0960b6f7fa50729 100644 (file)
--- 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