diff options
-rw-r--r-- | man/runlevel.xml | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/man/runlevel.xml b/man/runlevel.xml index 4db06dc87c..976753a737 100644 --- a/man/runlevel.xml +++ b/man/runlevel.xml @@ -124,7 +124,7 @@ <variablelist> <varlistentry> - <term><filename>/run/utmp</filename></term> + <term><filename>/var/run/utmp</filename></term> <listitem><para>The utmp database <command>runlevel</command> reads the diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 1318272085..636715f759 100644 --- a/src/libsystemd/sd-bus/sd-bus.c +++ b/src/libsystemd/sd-bus/sd-bus.c @@ -794,8 +794,8 @@ static int parse_container_unix_address(sd_bus *b, const char **p, char **guid) machine = NULL; b->sockaddr.un.sun_family = AF_UNIX; - strncpy(b->sockaddr.un.sun_path, "/run/dbus/system_bus_socket", sizeof(b->sockaddr.un.sun_path)); - b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + strlen("/run/dbus/system_bus_socket"); + strncpy(b->sockaddr.un.sun_path, "/var/run/dbus/system_bus_socket", sizeof(b->sockaddr.un.sun_path)); + b->sockaddr_size = offsetof(struct sockaddr_un, sun_path) + strlen("/var/run/dbus/system_bus_socket"); return 0; } |