diff options
author | Eric Andersen | 1999-11-27 20:34:28 +0000 |
---|---|---|
committer | Eric Andersen | 1999-11-27 20:34:28 +0000 |
commit | 1667fb4b633e8a250a17aea782baa18fc872d9d7 (patch) | |
tree | de5d7c942b780d43e67e2a97fca128597f80b7b8 /util-linux | |
parent | c054b21f7d0420b1f8f8100a17fb14de9c947ef2 (diff) | |
download | busybox-1667fb4b633e8a250a17aea782baa18fc872d9d7.zip busybox-1667fb4b633e8a250a17aea782baa18fc872d9d7.tar.gz |
Fixes
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/umount.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 061bb9b..3bd8681 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -73,8 +73,13 @@ umount_all(int useMtab) while ((m = getmntent (mountTable)) != 0) { char *blockDevice = m->mnt_fsname; #if ! defined BB_MTAB - if (strcmp (blockDevice, "/dev/root") == 0) - blockDevice = (getfsfile ("/"))->fs_spec; + if (strcmp (blockDevice, "/dev/root") == 0) { + struct fstab* fstabItem; + fstabItem = getfsfile ("/"); + if (fstabItem != NULL) { + blockDevice = fstabItem->fs_spec; + } + } #endif /* Don't umount /proc when doing umount -a */ if (strcmp (blockDevice, "proc") == 0) |