diff options
author | Jeremy Allison <jra@samba.org> | 1997-08-28 18:59:52 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-08-28 18:59:52 +0000 |
commit | 45f998293034f399ebf8c76ff41c8b9b55b86776 (patch) | |
tree | 1ad1c8b8e8a14f585591e9019ee79a62e0d190cc /source3/smbd/server.c | |
parent | 22e4d4e9d44577593d53ad84e77c9c078774d2e9 (diff) | |
download | samba-45f998293034f399ebf8c76ff41c8b9b55b86776.tar.gz samba-45f998293034f399ebf8c76ff41c8b9b55b86776.tar.bz2 samba-45f998293034f399ebf8c76ff41c8b9b55b86776.zip |
mangle.c: Fixed bug that caused string to run off the end of the mangled map.
server.c: Changed comparison from dname to name2 - seems correct - don't know why
I changed it originally. hmmmmm.
trans2.c: Made lanman2 code more similar to scan_directory(). I should
make the trans2 code call scan_dir as they are so similar.
Jeremy(jallison@whistle.com).
(This used to be commit 3909576849025ed21e5282abc892ae7582ee0275)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r-- | source3/smbd/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 4259bda958..93724a9861 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -397,7 +397,7 @@ static BOOL scan_directory(char *path, char *name,int cnum,BOOL docache) if (!name_map_mangle(name2,False,SNUM(cnum))) continue; if ((mangled && mangled_equal(name,name2)) - || fname_equal(name, dname)) + || fname_equal(name, name2)) /* name2 here was changed to dname - since 1.9.16p2 - not sure of reason (jra) */ { /* we've found the file, change it's name and return */ if (docache) DirCacheAdd(path,name,dname,SNUM(cnum)); |