~alpine/aports

main/sysklogd: remove GNUism and use POSIX Extended Regular Expressions (EREs) v1 PROPOSED

Nathan Angelacos: 1
 main/sysklogd:     remove GNUism and use POSIX Extended Regular Expressions (EREs)

 1 files changed, 3 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/2243/mbox | git am -3
Learn more about email & git

[alpine-aports] [PATCH] main/sysklogd: remove GNUism and use POSIX Extended Regular Expressions (EREs) Export this patch

---
 main/sysklogd/sysklogd.daily | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main/sysklogd/sysklogd.daily b/main/sysklogd/sysklogd.daily
index 723413d..3d98e8e 100755
--- a/main/sysklogd/sysklogd.daily
+++ b/main/sysklogd/sysklogd.daily
@@ -1,7 +1,7 @@
#!/bin/sh
# This is a shell script replacement for the sysklogd's logrotate cron script
# and syslogd-listfiles perl script. 
# Copyright (C) 2008 N. Angelacos for the Alpine Linux project  - GPL2
# Copyright (C) 2008-2015 N. Angelacos for the Alpine Linux project  - GPL2


CONF="/etc/syslog.conf"
@@ -25,9 +25,9 @@ syslogd_listfiles() {
	#		deletes lines that are not filenames with leading "/"
	#		print it
	while read a ; do echo "$a"; done < $CONF |\
		sed -n -e "s/\#.*//" \
		sed -nE -e "s/\#.*//" \
			-e "/^[[:space:]]*$/D" \
			-e "s/[[:space:]]\+/ /g" \
			-e "s/[[:space:]]+/ /g" \
			-e "s: -/: /:g" \
			-e "s/ *; */;/" \
			-e "/^.*\(auth\)[^ ]* /${skip}D" \
-- 
2.3.1



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---