From 2d7a8480cf3e58d10c9a11e161a8fe6c91a59039 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 10 May 2003 00:35:38 +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 4cd8b276715f7e019fcee8fc3ebb2855610c4751) --- 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