getpw{nam,uid}[_r]: Fix return value behavior
... when the user is not found.
This commit is contained in:
parent
222fb7a91a
commit
fb8a9c4710
@ -50,7 +50,7 @@ query_passwd_entry(const char* name, uid_t _uid, struct passwd *passwd,
|
||||
status_t error = BPrivate::send_authentication_request_to_registrar(message,
|
||||
reply);
|
||||
if (error != B_OK)
|
||||
return error;
|
||||
return error == ENOENT ? B_OK : error;
|
||||
|
||||
int32 uid;
|
||||
int32 gid;
|
||||
|
Loading…
Reference in New Issue
Block a user