git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63c1aa2
)
Brain fart - make sure we truncate the right string...
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 17 Mar 2003 10:58:05 +0000
(10:58 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 17 Mar 2003 10:58:05 +0000
(10:58 +0000)
Andrew Bartlett
(This used to be commit
32eb2cdca62a784d96207507e273bbbf77b0c6c3
)
source3/smbd/statcache.c
patch
|
blob
|
history
diff --git
a/source3/smbd/statcache.c
b/source3/smbd/statcache.c
index b1cb0f6e0fd8aaf84f3c4f9f18467734c968c109..1e06b2b103168791f9ad9b9b58f77f731d11650f 100644
(file)
--- a/
source3/smbd/statcache.c
+++ b/
source3/smbd/statcache.c
@@
-121,11
+121,11
@@
void stat_cache_add( const char *full_orig_name, const char *orig_translated_pat
return;
}
- /* we only want to store the first part of
translated
_path,
- up to the length of
original
_path */
+ /* we only want to store the first part of
original
_path,
+ up to the length of
translated
_path */
-
translated_path[original
_path_length] = '\0';
-
translated_path_length = original
_path_length;
+
original_path[translated
_path_length] = '\0';
+
original_path_length = translated
_path_length;
}
#if 0