aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2008-12-16 19:29:18 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2008-12-16 19:29:18 +0000
commit921522ec7ff35201657187765838307dc50810dd (patch)
tree9198eb828e7c0be34dc512c072ad3f9256c56ac0 /cron-sh
parent84ec9798e834fef940ccb3858cced1dd98ed23e8 (diff)
downloadmsec-921522ec7ff35201657187765838307dc50810dd.tar
msec-921522ec7ff35201657187765838307dc50810dd.tar.gz
msec-921522ec7ff35201657187765838307dc50810dd.tar.bz2
msec-921522ec7ff35201657187765838307dc50810dd.tar.xz
msec-921522ec7ff35201657187765838307dc50810dd.zip
Simplified rpm database check (#14361).
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index c80c700..c7ec008 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -177,7 +177,7 @@ if [[ ${RPM_CHECK} == yes ]]; then
rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\n" | sort > ${RPM_QA_TODAY}
rm -f ${RPM_VA_TODAY}.tmp
- cut -f 1 < ${RPM_QA_TODAY} | grep -v '^dev-[0-9]' | xargs -s 1024 nice --adjustment=+19 rpm -V | grep '^..5' | sort > ${RPM_VA_TODAY}.tmp
+ nice --adjustment=+19 rpm -Va | 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}
rm -f ${RPM_VA_TODAY}.tmp