summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorrink <rink@FreeBSD.org>2006-10-09 17:38:18 +0000
committerrink <rink@FreeBSD.org>2006-10-09 17:38:18 +0000
commit048d5cc4aa51705f651aa63f01ccb6e2e0894cd3 (patch)
tree8e65daa8b681e0724a73c8f8112b59d8ed01223f /usr.sbin/mountd
parent6a8dfa76182b17f26de62b30dea11f79111400b7 (diff)
downloadFreeBSD-src-048d5cc4aa51705f651aa63f01ccb6e2e0894cd3.zip
FreeBSD-src-048d5cc4aa51705f651aa63f01ccb6e2e0894cd3.tar.gz
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
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 40fb1c6..a171910 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
OpenPOWER on IntegriCloud