Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > b9fd683dbd61cf5c85ffeadacf495b31 > files > 2

acpid-1.0.6-1.1mdv2008.0.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] == '~') {