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:
parent
07f272122d
commit
885b65a09a
11 changed files with 42 additions and 31 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue