]> 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 17:59:02 +0000 (13:59 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 21 May 2012 17:59:02 +0000 (13:59 -0400)
commit92f0843c89bbe2969432df07f7a28d42fe9fe3d3
treec47cd07da384945c584c72b8ea5b6eb9ae1a8ea0
parenta904acacb26ae7c559e1a24a489c7bc97a5e744b
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.8
plugins/sudoers/set_perms.c
plugins/sudoers/sudoers.c