mirror of
https://github.com/LIV2/libnix.git
synced 2025-12-06 00:23:08 +00:00
don't use the UserGroup library if not loaded
This commit is contained in:
parent
7db5d68648
commit
cb2b3be3ad
@ -249,6 +249,8 @@ struct passwd *getpwuid(uid_t uid)
|
|||||||
/* Don't do this if uid == -2 (nobody2) */
|
/* Don't do this if uid == -2 (nobody2) */
|
||||||
/* This happens when someone doesn't use AmiTCP's login */
|
/* This happens when someone doesn't use AmiTCP's login */
|
||||||
if (uid != (uid_t)-2) {
|
if (uid != (uid_t)-2) {
|
||||||
|
if (!USERGROUP_BASE_NAME)
|
||||||
|
return 0;
|
||||||
if ((pwd=__TCP2InetPwd(UG_getpwuid(uid),lss)) == NULL)
|
if ((pwd=__TCP2InetPwd(UG_getpwuid(uid),lss)) == NULL)
|
||||||
errno = ug_GetErr();
|
errno = ug_GetErr();
|
||||||
return pwd;
|
return pwd;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user