getgrgid_r()/getgrname_r(): Fix group not found return value
This commit is contained in:
parent
c13744f4c0
commit
222fb7a91a
@ -49,8 +49,9 @@ query_group_entry(const char* name, gid_t _gid, struct group *group,
|
||||
KMessage reply;
|
||||
status_t error = BPrivate::send_authentication_request_to_registrar(message,
|
||||
reply);
|
||||
if (error != B_OK)
|
||||
return error;
|
||||
if (error != B_OK) {
|
||||
return error == ENOENT ? B_OK : error;
|
||||
}
|
||||
|
||||
int32 gid;
|
||||
const char* password;
|
||||
|
Loading…
Reference in New Issue
Block a user