summaryrefslogtreecommitdiffstats
path: root/utils/mountd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-10-08 18:24:45 -0500
committerSteve Dickson <steved@redhat.com>2010-01-13 15:39:14 -0500
commit5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f (patch)
tree8c2fa18c938f26a12d7a437d450f138910fa161d /utils/mountd
parente0ad421dabad027c33f78268d4829643b19165fd (diff)
downloadnfs-utils-5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f.tar.gz
nfs-utils-5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f.tar.xz
nfs-utils-5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f.zip
mountd: kill unnecessary m_mayexport check
Only exportfs uses m_mayexport; mountd always populates the export list with auth_reload(), which always sets m_mayexport on the entries it creates. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'utils/mountd')
-rw-r--r--utils/mountd/auth.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c
index 0aac273..41a57db 100644
--- a/utils/mountd/auth.c
+++ b/utils/mountd/auth.c
@@ -181,10 +181,6 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller,
*error = no_entry;
return NULL;
}
- if (!exp->m_mayexport) {
- *error = not_exported;
- return NULL;
- }
}
if (!(exp->m_export.e_flags & NFSEXP_INSECURE_PORT) &&
ntohs(caller->sin_port) >= IPPORT_RESERVED) {