From: Yu Watanabe Date: Thu, 1 Feb 2018 10:39:30 +0000 (+0900) Subject: systemctl: show: use EnvironmentFiles= instead of EnvironmentFile= X-Git-Tag: v238~149^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8065%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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);