]> granicus.if.org Git - sudo/commit
If sudoers_mode is group-readable but the actual sudoers file is
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 21 May 2012 18:24:27 +0000 (14:24 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 21 May 2012 18:24:27 +0000 (14:24 -0400)
commit0d0340ef5c82fd7b3a614cd979881c09687ce5a7
tree56b6d8e8ef0bb51f4402d379308410e55a9ca0c1
parent8c4758cb4927a7c1351c32a79da07efb652bf67a
If sudoers_mode is group-readable but the actual sudoers file is
not, open the file as uid 0, not uid 1.  This fixes a problem when
sudoers has a more restrictive mode than what sudo expects to find.
In older versions, sudo would silently chmod the file to add the
group-readable bit.

--HG--
branch : 1.7
set_perms.c
sudo.c