From 6a5a80bd0f1b75bc37d2eb05a547e89c4c3856d1 Mon Sep 17 00:00:00 2001 From: Rink Springer Date: Mon, 9 Oct 2006 17:38:18 +0000 Subject: [PATCH] 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 --- usr.sbin/mountd/mountd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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