mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
dtsession: revise localAuthenticate.
This commit is contained in:
parent
7d8dea61b2
commit
e68846d543
1 changed files with 3 additions and 0 deletions
|
@ -1611,6 +1611,9 @@ localAuthenticate(
|
|||
char *service;
|
||||
struct passwd *pwent;
|
||||
|
||||
if (!(name && name[0])) name = NULL;
|
||||
if (uid < 0) uid = 0;
|
||||
|
||||
if (!(name || passwd)) return True;
|
||||
if (!passwd) return False;
|
||||
if (!(pwent = name ? getpwnam(name) : getpwuid(uid))) return False;
|
||||
|
|
Loading…
Reference in a new issue