File acpid-set-umask-for-scripts.patch of Package acpid.openSUSE_12.1_Update
Index: acpid-2.0.10/event.c
===================================================================
--- acpid-2.0.10.orig/event.c
+++ acpid-2.0.10/event.c
@@ -641,6 +641,7 @@ do_cmd_rule(struct rule *rule, const cha
if (acpid_debug && logevents) {
fprintf(stdout, "BEGIN HANDLER MESSAGES\n");
}
+ umask(0077);
execl("/bin/sh", "/bin/sh", "-c", action, NULL);
/* should not get here */
acpid_log(LOG_ERR, "execl(): %s", strerror(errno));