Skip to contentSkip to conversation

syslog: Change unused variable declaration LOCAL=0 to LOG_LOCAL=1

PATCH New Michael Gloff 1 participant 1 message Sep 23, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syslog: Change unused variable declaration LOCAL=0 to LOG_LOCAL=1

This fix allows the correct appending of -L to syslogd arguments when both file and remote logging are selected.

---
 meta/recipes-core/busybox/files/syslog |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/busybox/files/syslog +1 -1
index 2944d3d..89c4d12 100644
@@ -28,7 +28,7 @@ if [ -f /etc/syslog-startup.conf ]; then
 			if [ -n "$ROTATEGENS" ]; then
 				SYSLOG_ARGS="$SYSLOG_ARGS -b $ROTATEGENS"
 			fi
-			LOCAL=0
+			LOG_LOCAL=1
 		elif [ "$D" = "remote" ]; then
 			SYSLOG_ARGS="$SYSLOG_ARGS -R $REMOTE"
 			LOG_REMOTE=1
Signature · 1 line
1.7.9.5