Commit 4cb95ab3 authored by Niels Möller's avatar Niels Möller

(main): Fixed handling of stderr, with --no-syslog.

Rev: src/lshd.c:1.173
parent d5380e4b
...@@ -1202,9 +1202,9 @@ main(int argc, char **argv) ...@@ -1202,9 +1202,9 @@ main(int argc, char **argv)
#else /* !HAVE_SYSLOG */ #else /* !HAVE_SYSLOG */
werror("lshd: No syslog. Further messages will be directed to /dev/null.\n"); werror("lshd: No syslog. Further messages will be directed to /dev/null.\n");
#endif /* !HAVE_SYSLOG */ #endif /* !HAVE_SYSLOG */
if (!daemon_dup_null(STDERR_FILENO))
return EXIT_FAILURE;
} }
else if (!daemon_dup_null(STDERR_FILENO))
return EXIT_FAILURE;
if (mode != DAEMON_INETD) if (mode != DAEMON_INETD)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment