]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: update utab after successful extern helper mount
authorKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 11:45:33 +0000 (12:45 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 13:24:41 +0000 (14:24 +0100)
commit7e0c06194f5e65eb2a9ae38515d78f4ef301c809
tree9016b997f030a5f288ed7a5b48b399c5e80624ef
parent889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12
libmount: update utab after successful extern helper mount

This patch allows to maintain private utab libmount file also for
external mount/umount helpers that are not linked with libmount.

The libmount check if utab has been updated after successful extern
helper execution (status=0). If not then the file is updated.

This patch affects only 'user' fstab mount option. So, for example
with suid mount.cifs you can use:

 //server/foo    /mnt  cifs   username=foo,noauto,user

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/mountP.h
libmount/src/tab_update.c