From a4c726f92d40eb78e66f01f654650804cc27cab7 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 14 Jun 2011 12:29:19 -0400 Subject: [PATCH] name cache: no longer copies fh for negative entries nfs41_name_cache_lookup() was returning FILE_NOT_FOUND on negative entries, but still copying the target filehandle Signed-off-by: Casey Bodley --- daemon/name_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/name_cache.c b/daemon/name_cache.c index a7888f1..86406fb 100644 --- a/daemon/name_cache.c +++ b/daemon/name_cache.c @@ -581,6 +581,7 @@ static int name_cache_lookup( target = name_cache_search(cache, parent, &component); path_pos = component.name + component.len; if (target == NULL || (skip_invis && entry_invis(target, is_negative))) { + target = NULL; if (is_last_component(component.name, path_end)) status = ERROR_FILE_NOT_FOUND; else