[klibc] [PATCH] kinit -- umount /proc
Volker Dormeyer
volker at ixolution.de
Thu Mar 18 08:39:17 PST 2004
Hello,
I found that umount2("/proc", 0) in kinit.c fails to umount /proc before
mounting the real root filesystem. This seems to be, because
/proc/filesystems is not closed by get_fs_names(). Here is a another small
patch for kinit to fix this. It adds fclose to get_fs_names() in
do_mounts.c. It works for me, so far.
Regards
Volker
--
Volker Dormeyer <volker at ixolution.de>
-------------- next part --------------
--- klibc-0.115/kinit/do_mounts.c 2003-06-01 08:21:09.000000000 +0200
+++ klibc-0.115.closeproc/kinit/do_mounts.c 2004-03-16 23:08:43.000000000 +0100
@@ -249,6 +249,8 @@ get_fs_names(int argc, char *argv[], cha
strcpy(s, line + 1);
s += strlen(line + 1) + 1;
}
+ if (fp)
+ fclose(fp);
}
done:
return;
More information about the klibc
mailing list