]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: pass BUS_MAP_STRDUP when needed (#8682)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 8 Apr 2018 06:12:18 +0000 (08:12 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Apr 2018 06:12:18 +0000 (15:12 +0900)
This fixes an assert in "systemctl list-dependencies".
Follow-up for a7e4861c7471bfe563078d11acbcecbf2d755462.

src/systemctl/systemctl.c

index b4cbe126f67b970c8cadf0afbd61ebbad334eb2e..16a28edaa22e19f61dbd8460a6db519c1a6b29f2 100644 (file)
@@ -1680,7 +1680,7 @@ static int list_dependencies_get_dependencies(sd_bus *bus, const char *name, cha
                                    "org.freedesktop.systemd1",
                                    path,
                                    map[arg_dependency],
-                                   0,
+                                   BUS_MAP_STRDUP,
                                    &error,
                                    NULL,
                                    &info);