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:
Rink Springer 2006-10-09 17:38:18 +00:00
parent 667dc26e71
commit 6a5a80bd0f

View File

@ -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