[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#255180: module-init-tools: removal of modprobe.conf breaks mkinitrd



severity 255180 grave
reassign 255180 module-init-tools
merge 254950 255149 255174 255180
thanks

Hi,

hopefully, I got the control commands right this time.  Also, Goswin's
patch is a bit too liberal with the lock for my taste.  The following
patch allows for loading from read-only filesystems while still
acquiring an exclusive lock.

Regards, Jens.

--- module-init-tools-3.1-pre2/modprobe.c~	2004-06-16 00:54:51.000000000 +0200
+++ module-init-tools-3.1-pre2/modprobe.c	2004-06-19 15:52:08.273513773 +0200
@@ -198,7 +198,7 @@
 
 static int lock_file(const char *filename)
 {
-	int fd = open(filename, O_RDWR, 0);
+	int fd = open(filename, O_RDONLY, 0);
 
 	if (fd >= 0) {
 		struct flock lock;




-- 
J'qbpbe, le m'en fquz pe j'qbpbe!
Le veux aimeb et mqubib panz je pézqbpbe je djuz tqtaj!



Reply to: