aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-27 20:34:28 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>1999-11-27 20:34:28 +0000
commit83a86b64f4465784bc531e68d1b2f3290aa3a381 (patch)
treede5d7c942b780d43e67e2a97fca128597f80b7b8 /util-linux
parent855387cfe73c868e360b6bc06956128a0be0b7b3 (diff)
downloadbusybox-w32-83a86b64f4465784bc531e68d1b2f3290aa3a381.tar.gz
busybox-w32-83a86b64f4465784bc531e68d1b2f3290aa3a381.tar.bz2
busybox-w32-83a86b64f4465784bc531e68d1b2f3290aa3a381.zip
Fixes
git-svn-id: svn://busybox.net/trunk/busybox@123 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/umount.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 061bb9b16..3bd86814e 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -73,8 +73,13 @@ umount_all(int useMtab)
73 while ((m = getmntent (mountTable)) != 0) { 73 while ((m = getmntent (mountTable)) != 0) {
74 char *blockDevice = m->mnt_fsname; 74 char *blockDevice = m->mnt_fsname;
75#if ! defined BB_MTAB 75#if ! defined BB_MTAB
76 if (strcmp (blockDevice, "/dev/root") == 0) 76 if (strcmp (blockDevice, "/dev/root") == 0) {
77 blockDevice = (getfsfile ("/"))->fs_spec; 77 struct fstab* fstabItem;
78 fstabItem = getfsfile ("/");
79 if (fstabItem != NULL) {
80 blockDevice = fstabItem->fs_spec;
81 }
82 }
78#endif 83#endif
79 /* Don't umount /proc when doing umount -a */ 84 /* Don't umount /proc when doing umount -a */
80 if (strcmp (blockDevice, "proc") == 0) 85 if (strcmp (blockDevice, "proc") == 0)