summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-10 00:35:38 +0000
committerJeremy Allison <jra@samba.org>2003-05-10 00:35:38 +0000
commit2d7a8480cf3e58d10c9a11e161a8fe6c91a59039 (patch)
treec12caa56fea32a0bd569177ee777d139b96eaa35
parent7ae17cc151c59c8ec8020b97ed4c6482384e65be (diff)
downloadsamba-2d7a8480cf3e58d10c9a11e161a8fe6c91a59039.tar.gz
samba-2d7a8480cf3e58d10c9a11e161a8fe6c91a59039.tar.bz2
samba-2d7a8480cf3e58d10c9a11e161a8fe6c91a59039.zip
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)
-rw-r--r--source3/smbd/filename.c9
1 files changed, 0 insertions, 9 deletions
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.
*/