[BusyBox] getty patch (syslog-related)

Nick Fedchik fnm at fusion.ukrsat.com
Sat Jan 25 03:45:03 UTC 2003


Nothing critical, I just add
+#ifdef CONFIG_SYSLOGD

IMHO it's more correct.


-- 
Nick Fedchik, FNM3-RIPE(UANIC)
Internet Dept./ISP UkrSat, Kiev, Ukraine
-------------- next part --------------
--- busybox/loginutils/getty.c	2003-01-21 22:55:55 +0200
+++ busybox-dirty/loginutils/getty.c	2003-01-24 12:46:55 +0200
@@ -32,13 +32,10 @@
 
 #define _PATH_LOGIN     "/bin/login"
 
-#ifdef linux
+ /* If USE_SYSLOG is undefined all diagnostics go directly to /dev/console. */
+#ifdef CONFIG_SYSLOGD
 #include <sys/param.h>
 #define USE_SYSLOG
-#endif
-
- /* If USE_SYSLOG is undefined all diagnostics go directly to /dev/console. */
-#ifdef	USE_SYSLOG
 #include <syslog.h>
 #endif
 


More information about the busybox mailing list