1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fixes for OpenBSD

This commit is contained in:
Ulrich Wilkens 2018-06-01 03:29:42 +02:00 committed by Jon Trulson
parent 07f272122d
commit 885b65a09a
11 changed files with 42 additions and 31 deletions

View file

@ -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.