getpw{nam,uid}[_r]: Fix return value behavior

... when the user is not found.
This commit is contained in:
Ingo Weinhold 2013-09-18 16:15:41 +02:00
parent 222fb7a91a
commit fb8a9c4710

View File

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