]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 0aac273a9df44b68f4d37be2b2b54c13f2ab2594..41a57db8e843e04ff5884f0d54f5f36485eb0cea 100644 (file)
@@ -181,10 +181,6 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller,
                        *error = no_entry;
                        return NULL;
                }
                        *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) {
        }
        if (!(exp->m_export.e_flags & NFSEXP_INSECURE_PORT) &&
                     ntohs(caller->sin_port) >= IPPORT_RESERVED) {