]> git.ipfire.org Git - thirdparty/util-linux.git/commit
umount: provide more helpful error message
authorKarel Zak <kzak@redhat.com>
Fri, 27 Sep 2013 08:06:44 +0000 (10:06 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 27 Sep 2013 08:06:44 +0000 (10:06 +0200)
commit726f9fbf46c3e0427c47e7c68c69d4ae42191b71
treeb7da613beac7c0c4eb8ca9958d2c6736a6f14ee0
parentc410f64734cb8a67e3396d924b4b475022c9494e
umount: provide more helpful error message

non-root user on device that is not mounted:

 $ umount /mnt/flash
 umount: /mnt/flash: umount failed: Operation not permitted

this is true, because we cannot evaluate permissions as there is no
entry in mtab, but users expect something more helpful -- for example

 umount: /mnt/flash: not mounted

References: https://bugs.archlinux.org/task/31647
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/umount.c