summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-10 00:35:23 +0000
committerJeremy Allison <jra@samba.org>2003-05-10 00:35:23 +0000
commit364792cd48ed9c6f46c1f78fbf0d48ef7c6cba8f (patch)
tree24983679e163e1719ed8c873c08ac9fe6b76535f /source3
parentb6e365271f5409db20b5e67a218eb0694af6f920 (diff)
downloadsamba-364792cd48ed9c6f46c1f78fbf0d48ef7c6cba8f.tar.gz
samba-364792cd48ed9c6f46c1f78fbf0d48ef7c6cba8f.tar.bz2
samba-364792cd48ed9c6f46c1f78fbf0d48ef7c6cba8f.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 98729bc9a60f77dbc107c42f4f7a60ed96e2102f)
Diffstat (limited to 'source3')
-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.
*/