]> git.ipfire.org Git - thirdparty/util-linux.git/commit
umount: call /sbin/umount.<uhelper> for root user too
authorKarel Zak <kzak@redhat.com>
Tue, 15 Mar 2011 09:31:06 +0000 (10:31 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Mar 2011 09:31:06 +0000 (10:31 +0100)
commitc56226697342ddd663492f77768e7a7cb8e579a1
treeb31b230075b6f0f8b8fb80ca5a9cf4f1e5ead7f4
parent5982583a4e5fdba35e496a19f94fc6400d3cfeae
umount: call /sbin/umount.<uhelper> for root user too

Originally the "uhelper=" was ignored for root, now the umount command
calls /sbin/umount.<uhelper> always.

This change is necessary for things like pam_mount where a device has
to be uninitialized by uhelper rather than directly umounted by
umount(2).

Note that all uhelpers has to be linked with libmount or execute

umount -fake -i /mountpoint

to remove mountpoint entry from /etc/mtab or /dev/.mount/utab.

Signed-off-by: Karel Zak <kzak@redhat.com>
mount/umount.8
mount/umount.c