]> git.ipfire.org Git - thirdparty/util-linux.git/commit
umount: don't ignore --quiet for non-root users
authorKarel Zak <kzak@redhat.com>
Thu, 9 Feb 2023 13:11:00 +0000 (14:11 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 9 Feb 2023 13:11:00 +0000 (14:11 +0100)
commit0888529ceba19b7150715a52856ae875a6dcca9b
tree0df084e7957a67834a4badc6f4b105b72f94c349
parentce2d993bc667f634a8a98503a99249fcc21a9af2
umount: don't ignore --quiet for non-root users

The command line option --quiet suppresses 'not mounted' error
messages. This does not work for non-root users because libmount does
not call umount(2) syscall, and in this case, the library returns
-EPERM.

Fixes: https://github.com/util-linux/util-linux/issues/2060
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/umount.c