Improve check for circular log buffer

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-10-31 08:31:46 -07:00
parent 460f4bc5b7
commit 27d94c8921

View File

@ -158,16 +158,20 @@ syslog_circular_buffer() {
case $path in
syslogd|*/syslogd)
for arg in $args; do
if [ x$arg = x-C ]; then
return 0
fi
case $arg in
-C*)
return 0
;;
esac
done
;;
logd|*/logd)
for arg in $args; do
if [ x$arg = x-S ]; then
return 0
fi
case $arg in
-S*)
return 0
;;
esac
done
;;
esac