From 6167ee14e1d6b488453776544fc8d03a2768f29a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 12 May 2011 14:51:28 +0100 Subject: [PATCH] Force mode +x on insmod.static binary (RHBZ#666880). --- helper/init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helper/init.c b/helper/init.c index 275f4db..06a7aa7 100644 --- a/helper/init.c +++ b/helper/init.c @@ -64,6 +64,12 @@ main () exit (EXIT_FAILURE); } + /* A perennial problem is that /sbin/insmod.static is not + * executable. Just make it executable. It's easier than fixing + * everyone's distro. + */ + chmod ("/sbin/insmod.static", 0755); + FILE *fp = fopen ("/modules", "r"); if (fp == NULL) { perror ("fopen: /modules"); -- 1.8.3.1