mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-10 13:57:25 +03:00
Merge pull request #2636 from 0xAX/not-edit-errno-manually
main: no need to set errno manually
This commit is contained in:
commit
bd8b65996c
@ -1313,7 +1313,6 @@ int main(int argc, char *argv[]) {
|
||||
/* This is compatibility support for SysV, where
|
||||
* calling init as a user is identical to telinit. */
|
||||
|
||||
errno = -ENOENT;
|
||||
execv(SYSTEMCTL_BINARY_PATH, argv);
|
||||
log_error_errno(errno, "Failed to exec " SYSTEMCTL_BINARY_PATH ": %m");
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user