Bug#57624: fixed hanging in kernel & modules install
Package: boot-floppies
Version: 2000-02-11
The following patch fixes infinite loop while installing kernel & modules from
http (exactly in fdisk_find_partition_by_mntpoint).
I guess it fixes bug report #57624.
It is due to a call to mounted_reread() in is_nfs_partition() without
reinitialising mounted_partitions to NULL (normally done by fdisk_init called
from fdisk_reread).
Could someone apply it to CVS tree for me? I cannot do it myself because my
internet connection is restricted to email till monday evening.
Regards.
diff -ur boot-floppies-20000211.orig/utilities/libfdisk/fdisk.c boot-floppies-20000211/utilities/libfdisk/fdisk.c
--- boot-floppies-20000211.orig/utilities/libfdisk/fdisk.c Fri Feb 11 18:26:55 2000
+++ boot-floppies-20000211/utilities/libfdisk/fdisk.c Sun Feb 13 19:33:12 2000
@@ -650,6 +650,7 @@
struct fdisk_partition *p;
int type;
+ mounted_partitions = NULL;
if (NULL == (mtabFile = setmntent("/proc/mounts", "r"))) {
return ;
}
@@ -740,6 +741,7 @@
struct fdisk_partition *p;
+ swapon_partitions = last_swapon_partition = NULL;
if (NULL == (swapsFile = setmntent("/etc/swaps", "r"))) {
return ;
}
--
Eric Delaunay | S'il n'y a pas de solution, c'est qu'il n'y
delaunay@lix.polytechnique.fr | a pas de problème. Devise Shadok.
Reply to: