Fixes for OpenBSD
This commit is contained in:
committed by
Jon Trulson
parent
07f272122d
commit
885b65a09a
@@ -1799,7 +1799,12 @@ localAuthenticate(
|
||||
/*
|
||||
* Get password entry for 'name' or 'uid'.
|
||||
*/
|
||||
#if defined(__OpenBSD__) && OSMAJORVERSION > 5
|
||||
if ((pwent = (name == NULL ?
|
||||
getpwuid_shadow(uid) : getpwnam_shadow(name))) == NULL)
|
||||
#else
|
||||
if ((pwent = (name == NULL ? getpwuid(uid) : getpwnam(name))) == NULL)
|
||||
#endif
|
||||
{
|
||||
/*
|
||||
* Can't get entry.
|
||||
|
||||
Reference in New Issue
Block a user