mountd: kill unnecessary m_mayexport check
authorJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 8 Oct 2009 23:24:45 +0000 (18:24 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 13 Jan 2010 20:39:14 +0000 (15:39 -0500)
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>
utils/mountd/auth.c

index 0aac273..41a57db 100644 (file)
@@ -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) {