summaryrefslogtreecommitdiffstats
path: root/main/sysklogd/sysklogd.daily
diff options
context:
space:
mode:
Diffstat (limited to 'main/sysklogd/sysklogd.daily')
-rwxr-xr-xmain/sysklogd/sysklogd.daily11
1 files changed, 6 insertions, 5 deletions
diff --git a/main/sysklogd/sysklogd.daily b/main/sysklogd/sysklogd.daily
index 6c5692ba3..723413d4d 100755
--- a/main/sysklogd/sysklogd.daily
+++ b/main/sysklogd/sysklogd.daily
@@ -15,18 +15,19 @@ syslogd_listfiles() {
# the while loop joins lines that end in "\"
# the sed (in order)-
- # strips comments;
- # collapses spaces/tabs to 1 space;
+ # strips comments;
+ # remove empty lines;
+ # collapses spaces/tabs to 1 space;
# deletes the "-" in front of the filename;
# deletes whitespace before ';'
# deletes lines that have/dont have the "auth" facility
# deletes the facility (leaving just the filename)
- # deletes lines that are not filenames with leading "/"
+ # deletes lines that are not filenames with leading "/"
# print it
while read a ; do echo "$a"; done < $CONF |\
sed -n -e "s/\#.*//" \
- -e "/^\s*$/D" \
- -e "s/\s\+/ /g" \
+ -e "/^[[:space:]]*$/D" \
+ -e "s/[[:space:]]\+/ /g" \
-e "s: -/: /:g" \
-e "s/ *; */;/" \
-e "/^.*\(auth\)[^ ]* /${skip}D" \