summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-30 22:29:33 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-30 22:36:08 -0500
commite4c0fbe50c9a4a26efa4ae2b2350215be29b8660 (patch)
tree230f4d555ddf19e19c16f5e91bf3813ed8b9a969 /src/systemctl/systemctl.c
parente93c33d4aadb41427f215d43545e7fadc6bcec6f (diff)
systemctl: do not show SourcePath when FragmentPath cannot be found
Those files can be in a completely deferent format and also arbitrarily long, and usually contain information about other stuff. If we ever add SourceLine= or SourceLines= in addition to SourcePath=, and can show the relevant information only, this commit can be reverted.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index f7b2fb4019..5dcefd7f18 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -3718,23 +3718,6 @@ static int cat(sd_bus *bus, char **args) {
continue;
}
- if (isempty(fragment_path)) {
- free(fragment_path);
- fragment_path = NULL;
-
- if (sd_bus_get_property_string(
- bus,
- "org.freedesktop.systemd1",
- unit,
- "org.freedesktop.systemd1.Unit",
- "SourcePath",
- &error,
- &fragment_path) < 0) {
- log_warning("Failed to get SourcePath: %s", bus_error_message(&error, r));
- continue;
- }
- }
-
r = sd_bus_get_property_strv(
bus,
"org.freedesktop.systemd1",