summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-07 17:41:35 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:32 +0200
commitcc7cb0ca905157606d8f2827a813ca028d474125 (patch)
tree48923c13837cd0e4c50245cc06f9fe48055b2632 /src/systemctl/systemctl.c
parente735decc38fd60921c8d8c0345d01fd4ed874677 (diff)
systemctl: fix incorrect errno for error message
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index da2715810e..d3e9ccfbd5 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -5318,7 +5318,7 @@ static int enable_sysv_units(const char *verb, char **args) {
(void) reset_signal_mask();
execv(argv[0], (char**) argv);
- log_error_errno(r, "Failed to execute %s: %m", argv[0]);
+ log_error_errno(errno, "Failed to execute %s: %m", argv[0]);
_exit(EXIT_FAILURE);
}