This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/utils ChangeLog passwd.c
- From: corinna at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 23 Mar 2009 16:37:49 -0000
- Subject: src/winsup/utils ChangeLog passwd.c
CVSROOT: /cvs/src
Module name: src
Changes by: corinna@sourceware.org 2009-03-23 16:37:49
Modified files:
winsup/utils : ChangeLog passwd.c
Log message:
* 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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/utils/ChangeLog.diff?cvsroot=src&r1=1.460&r2=1.461
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/utils/passwd.c.diff?cvsroot=src&r1=1.17&r2=1.18