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