diff options
author | rink <rink@FreeBSD.org> | 2006-10-09 17:38:18 +0000 |
---|---|---|
committer | rink <rink@FreeBSD.org> | 2006-10-09 17:38:18 +0000 |
commit | 048d5cc4aa51705f651aa63f01ccb6e2e0894cd3 (patch) | |
tree | 8e65daa8b681e0724a73c8f8112b59d8ed01223f /usr.sbin | |
parent | 6a8dfa76182b17f26de62b30dea11f79111400b7 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 2 |
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 |