From: J. Bruce Fields Date: Thu, 8 Oct 2009 23:24:45 +0000 (-0500) Subject: mountd: kill unnecessary m_mayexport check X-Git-Tag: nfs-utils-1-2-2-rc6~5 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f 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 --- 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) {