From 364792cd48ed9c6f46c1f78fbf0d48ef7c6cba8f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 10 May 2003 00:35:23 +0000 Subject: Optimisation. We don't need to do 2 strlen's when we're setting the stat struct in the correct place. Jeremy. (This used to be commit 98729bc9a60f77dbc107c42f4f7a60ed96e2102f) --- source3/smbd/filename.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 9dd1523c73..b9e33e8f93 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -381,15 +381,6 @@ BOOL unix_convert(pstring name,connection_struct *conn,char *saved_last_componen if(!component_was_mangled && !name_has_wildcard) stat_cache_add(orig_path, name); - /* - * If we ended up resolving the entire path then return a valid - * stat struct if we got one. Note this doesn't catch mangled paths, - * but the check in the for loop above will do that. JRA. - */ - - if (VALID_STAT(st) && (strlen(orig_path) == strlen(name))) - *pst = st; - /* * The name has been resolved. */ -- cgit