Prevent mountd(8) from resetting mount options when exporting a filesystem.
Approved by: imp (mentor) Sponsored by: Quality Service Provider BV MFC after: 3 days
This commit is contained in:
parent
667dc26e71
commit
6a5a80bd0f
@ -1918,7 +1918,7 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags,
|
||||
iov[5].iov_base = fsb->f_mntfromname; /* "from" */
|
||||
iov[5].iov_len = strlen(fsb->f_mntfromname) + 1;
|
||||
|
||||
while (nmount(iov, iovlen, 0) < 0) {
|
||||
while (nmount(iov, iovlen, fsb->f_flags) < 0) {
|
||||
if (cp)
|
||||
*cp-- = savedc;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user