From 5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Thu, 8 Oct 2009 18:24:45 -0500 Subject: [PATCH] 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 --- utils/mountd/auth.c | 4 ---- 1 file changed, 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) { -- 2.39.5