[logcheck/el5/master] escape " in sed call

Matthias Runge mrunge at fedoraproject.org
Tue Sep 14 09:03:13 UTC 2010


commit 5420a0aca56300c223b6a3e649cff616cca73d2e
Author: Matthias Runge <matthias.runge at uni-oldenburg.de>
Date:   Tue Sep 14 11:02:02 2010 +0200

    escape " in sed call

 logcheck.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index 34713c9..14327e1 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,6 +1,6 @@
 Name:           logcheck 
 Version:        1.3.13
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Analyzes log files and sends noticeable events as email 
 
 License:        GPLv2
@@ -32,7 +32,7 @@ sed -i "s/syslog/messages/" etc/logcheck.logfiles
 sed -i "s/auth\.log/secure/" etc/logcheck.logfiles
 
 # use fedora run-parts (misses --list-option)
-sed -i "s/for rulefile in \$(run-parts --list "\$dir"); do/for rulefile in \$(run-parts "\$dir"); do/" src/logcheck
+sed -i "s/for rulefile in \$(run-parts --list \"\$dir\"); do/for rulefile in \$(run-parts \"\$dir\"); do/" src/logcheck
 
 
 %build
@@ -102,6 +102,9 @@ exit 0
 
 
 %changelog
+* Tue Sep 14 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-3
+- escape " in sed-call
+
 * Fri Sep 10 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-2
 - fix build on epel5, since _sharedstatedir expands to _prefix/com
 


More information about the scm-commits mailing list