mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Optimisation. We don't need to do 2 strlen's when we're setting the stat
struct in the correct place. Jeremy.
This commit is contained in:
parent
151b7d0d88
commit
4cd8b27671
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user