Don't make root do a kill(-1, SIGHUP) when password LOGOUT is entered.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@139 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -542,7 +542,8 @@ GetPasswd(Widget w, XEvent *_event, String *_s, Cardinal *_n)
|
||||
/*
|
||||
* Password that log out user
|
||||
*/
|
||||
if ((time(0) - locked_at) > ALLOW_LOGOUT
|
||||
if (getuid() != 0
|
||||
&& (time(0) - locked_at) > ALLOW_LOGOUT
|
||||
&& strncmp(passwd, LOGOUT_PASSWD, sizeof(LOGOUT_PASSWD)) == 0)
|
||||
kill(-1, SIGHUP);
|
||||
#ifdef KERBEROS
|
||||
|
Reference in New Issue
Block a user