diff options
Diffstat (limited to 'source3/smbd/statcache.c')
-rw-r--r-- | source3/smbd/statcache.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c index 44bae48990..0f42a3a83f 100644 --- a/source3/smbd/statcache.c +++ b/source3/smbd/statcache.c @@ -128,6 +128,18 @@ void stat_cache_add( const char *full_orig_name, const char *orig_translated_pat original_path_length = translated_path_length; } +#if 0 + /* + * We will only replace namelen characters + * of full_orig_name. + * StrnCpy always null terminates. + */ + + smbStrnCpy(orig_name, full_orig_name, namelen); + if(!case_sensitive) + strupper( orig_name ); +#endif + /* * Check this name doesn't exist in the cache before we * add it. |