mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
core/exec-invoke: fix bogus error code
r was bogus here. getusername_malloc() can only fail on oom, so we can simplify this.
This commit is contained in:
@@ -5430,7 +5430,7 @@ int exec_invoke(
|
||||
own_user = getusername_malloc();
|
||||
if (!own_user) {
|
||||
*exit_status = EXIT_USER;
|
||||
return log_error_errno(r, "Failed to determine my own user ID: %m");
|
||||
return log_oom();
|
||||
}
|
||||
u = own_user;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user