diff options
author | Karel Zak | 2011-03-04 14:44:29 +0100 |
---|---|---|
committer | Karel Zak | 2011-03-04 14:44:29 +0100 |
commit | 6c7f688b1f46c6fb31aa8a4a27d493c90e9ded37 (patch) | |
tree | f35b1f59e5f760c287af5e13a7dc4e8ada5c67f9 /mount/umount.c | |
parent | docs: update TODO (diff) | |
download | kernel-qcow2-util-linux-6c7f688b1f46c6fb31aa8a4a27d493c90e9ded37.tar.gz kernel-qcow2-util-linux-6c7f688b1f46c6fb31aa8a4a27d493c90e9ded37.tar.xz kernel-qcow2-util-linux-6c7f688b1f46c6fb31aa8a4a27d493c90e9ded37.zip |
umount: segfaults with inconsistent entry in /etc/fstab
Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/726283
Reported-by: Greg Brockman <gdb@gregbrockman.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.c')
-rw-r--r-- | mount/umount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/umount.c b/mount/umount.c index 8ef342a52..42671f465 100644 --- a/mount/umount.c +++ b/mount/umount.c @@ -608,7 +608,7 @@ umount_file (char *arg) { file); /* spec could be a file which is loop mounted */ - if (fs && !is_valid_loop(mc, fs)) + if (!fs || !is_valid_loop(mc, fs)) die (2, _("umount: %s mount disagrees with " "the fstab"), file); } |