]> git.decadent.org.uk Git - nfs-utils.git/commit - utils/mount/mount_libmount.c
mount.nfs: don't overwrite mount options from /etc/nfsmount.conf
authorKarel Zak <kzak@redhat.com>
Thu, 5 Jan 2012 18:32:26 +0000 (13:32 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 5 Jan 2012 20:42:40 +0000 (15:42 -0500)
commit89dde6fbabf6590ad7ccccc1f20f371f27da2207
treec2119bfccf5843c0c1417bfd370bd0464938e8ee
parent47e159ae88f03077a4746eb335d278399272f0ac
mount.nfs: don't overwrite mount options from /etc/nfsmount.conf

The libmount (as well as mount(8)) ignores mount options from command
line if running in restricted mode (suid, non-root-user) and all
options are read from fstab only.

It means that all options are replaced with stuff from fstab,
including mount options from nfsmount.conf. This is bug.

We have to apply fstab and then nfsmount.conf.

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount_libmount.c