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

From: Nathan Angelacos <[email-masked]>
Date: Wed, 11 Mar 2015 21:28:25 +0000

---
 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:  [email-masked]
Help:         [email-masked]
---