]> sourceware.org Git - newlib-cygwin.git/commit
* passwd.c (caller_is_admin): New function to test if calling user
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 23 Mar 2009 16:37:49 +0000 (16:37 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 23 Mar 2009 16:37:49 +0000 (16:37 +0000)
commit0e0f5748e0aaeb910dc074bed7fa3509897e982a
tree09dcb80e9c73dc235e37107a3e5db9e1ae1ababb
parent7d2e8c04f21294840159ca8f7393eb713487f8a4
* passwd.c (caller_is_admin): New function to test if calling user
is an administrator by inspecting user token.
(main): Drop fetching caller info from logonserver.  Only fetch
server from environment when trying to change password for own
account.  Drop admin check entirely in case of doing account
maintainance.  Otherwise replace check for admin by result of
caller_is_admin call.
winsup/utils/ChangeLog
winsup/utils/passwd.c
This page took 0.029273 seconds and 5 git commands to generate.