summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/mountd/cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index e340390..2468bc5 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -619,8 +619,7 @@ static int is_subdirectory(char *subpath, char *path)
int l = strlen(path);
return strcmp(subpath, path) == 0
- || (strncmp(subpath, path, l) == 0 && path[l] == '/'
- && is_mountpoint(path));
+ || (strncmp(subpath, path, l) == 0 && path[l] == '/');
}
static int path_matches(nfs_export *exp, char *path)