diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 40fb1c654b6..a1719109c60 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -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