diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-05-12 14:51:28 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-05-12 14:51:28 +0100 |
commit | 6167ee14e1d6b488453776544fc8d03a2768f29a (patch) | |
tree | 752d82af13f97d9211f8570ec66edbdec9da3696 | |
parent | d638270b133f19ca7f9570e47a498381dc4cfe10 (diff) | |
download | febootstrap-6167ee14e1d6b488453776544fc8d03a2768f29a.tar.gz febootstrap-6167ee14e1d6b488453776544fc8d03a2768f29a.tar.xz febootstrap-6167ee14e1d6b488453776544fc8d03a2768f29a.zip |
Force mode +x on insmod.static binary (RHBZ#666880).
-rw-r--r-- | helper/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
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"); |