From 82d252404a7ee6bd5f24482a0b50a8e91aa93257 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Jun 2014 16:59:13 +0200 Subject: core: make sure PrivateDevices= makes /dev/log available Now that we moved the actual syslog socket to /run/systemd/journal/dev-log we can actually make /dev/log a symlink to it, when PrivateDevices= is used, thus making syslog available to services using PrivateDevices=. --- src/initctl/initctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/initctl') diff --git a/src/initctl/initctl.c b/src/initctl/initctl.c index f9a6ed44e..f3f6f7304 100644 --- a/src/initctl/initctl.c +++ b/src/initctl/initctl.c @@ -383,7 +383,8 @@ int main(int argc, char *argv[]) { umask(0022); - if ((n = sd_listen_fds(true)) < 0) { + n = sd_listen_fds(true); + if (n < 0) { log_error("Failed to read listening file descriptors from environment: %s", strerror(-r)); return EXIT_FAILURE; } -- cgit v1.2.3