Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 7fc9e485086a4a50335b5ea323fbab0c > files > 4

acpid-1.0.6-6.2mnb2.src.rpm

diff -Naur acpid-1.0.6/event.c acpid-1.0.6.tpg/event.c
--- acpid-1.0.6/event.c	2007-05-25 04:26:09.000000000 +0000
+++ acpid-1.0.6.tpg/event.c	2007-07-10 23:47:05.000000000 +0000
@@ -123,6 +123,9 @@
 		if (dirent->d_name[0] == '.')
 			continue; /* skip dotfiles */
 
+		if (strstr(dirent->d_name, ".rpm"))
+			continue; /* skip .rpm{new,save} */
+
 		len = strlen(dirent->d_name);
 
 		if (dirent->d_name[len - 1] == '~') {