From 009192bb0397c1880586a56513d7054a7761ef01 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 1 Feb 2018 19:39:30 +0900 Subject: [PATCH] systemctl: show: use EnvironmentFiles= instead of EnvironmentFile= EnvironmentFile= is used in the unit file, but in the dbus, the related field name is EnvironmentFiles=. As the other variables, let's use the field name instead of the name used in the unit file setting. --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index a9bcc490ddd..99ad2fc4b0f 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4870,7 +4870,7 @@ static int print_property(const char *name, sd_bus_message *m, const char *conte return bus_log_parse_error(r); while ((r = sd_bus_message_read(m, "(sb)", &path, &ignore)) > 0) - print_prop("EnvironmentFile", "%s (ignore_errors=%s)", path, yes_no(ignore)); + print_prop(name, "%s (ignore_errors=%s)", path, yes_no(ignore)); if (r < 0) return bus_log_parse_error(r); -- 2.47.3