getgrgid_r()/getgrname_r(): Fix group not found return value

This commit is contained in:
Ingo Weinhold 2013-09-16 12:14:34 +02:00
parent c13744f4c0
commit 222fb7a91a

View File

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