aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-09-08 09:20:43 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-09-08 09:20:43 +0000
commit15f3d356ba257d76f89ac644eb8a6cd0fd6c0c06 (patch)
tree73841865c2e0e52463eb1c9dc77d57ac8837f0b9 /cron-sh/security.sh
parenteed1e481b9eede3ad9eb6befab7d5db17fff6e0c (diff)
downloadmsec-15f3d356ba257d76f89ac644eb8a6cd0fd6c0c06.tar
msec-15f3d356ba257d76f89ac644eb8a6cd0fd6c0c06.tar.gz
msec-15f3d356ba257d76f89ac644eb8a6cd0fd6c0c06.tar.bz2
msec-15f3d356ba257d76f89ac644eb8a6cd0fd6c0c06.tar.xz
msec-15f3d356ba257d76f89ac644eb8a6cd0fd6c0c06.zip
fix parsing of rpm -Va (bug #18326 , Michael Reinsch).
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index fc73d21..bd7ec79 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -173,8 +173,8 @@ if [[ ${RPM_CHECK} == yes ]]; then
rm -f ${RPM_VA_TODAY}.tmp
nice --adjustment=+19 rpm -V `cut -f 1 < ${RPM_QA_TODAY} | grep -v '^dev-[0-9]'` | grep '^..5' | sort > ${RPM_VA_TODAY}.tmp
- grep -v '^.........c.' ${RPM_VA_TODAY}.tmp | sed 's/^...........//' | sort > ${RPM_VA_TODAY}
- grep '^.........c.' ${RPM_VA_TODAY}.tmp | sed 's/^...........//' | sort > ${RPM_VA_CONFIG_TODAY}
+ grep -v '^..........c.' ${RPM_VA_TODAY}.tmp | sed 's/^............//' | sort > ${RPM_VA_TODAY}
+ grep '^..........c.' ${RPM_VA_TODAY}.tmp | sed 's/^............//' | sort > ${RPM_VA_CONFIG_TODAY}
rm -f ${RPM_VA_TODAY}.tmp
fi