]> granicus.if.org Git - sudo/commit
Fetch the login class for the user we authenticate specifically when
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Dec 2011 19:29:54 +0000 (14:29 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 2 Dec 2011 19:29:54 +0000 (14:29 -0500)
commit199eeb38d48175b9d7a3d902de9584190ed9b804
tree4683c2d097de18712cc5cbe44c3f1ef645bb8114
parent01147eda3a0e0e953bd0c324b4734d437ad3a959
Fetch the login class for the user we authenticate specifically when
using BSD authentication.  That user may have a different login class
than what we will use to run the command.  When setting the login
class for the command, use the target user's struct passwd, not
the invoking user's.  Fixes bug 526
plugins/sudoers/auth/bsdauth.c
plugins/sudoers/sudoers.c