lkml.org 
[lkml]   [1998]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: kmod patch

Thanks for this I'll give it a good run and see what happens.

I made a small change to get rid of a of a compile warning:

--- kmod.c Sat Mar 28 12:09:35 1998
+++ linux/kernel/kmod.c Sat Mar 28 12:28:12 1998
@@ -119,9 +122,9 @@
Call modprobe with module_name. If execve returns,
print out an error.
*/
- slot->argv[2] = slot->module_name;
- execve(modprobe_path, slot->argv, envp);
+ err = execve(modprobe_path, slot->argv, envp);
printk("Modprobe load failed - couldn't load %s\n",slot->module_name);
+ printk("Error code %d\n",err);
slot->info = MODRQ_FAILURE;
_exit(0);
} else {
--
Shaw Carruthers - shaw@shawc.demon.co.uk
London SW14 7JW UK
This is not a sig( with homage to Magritte).



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.102 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site