diff options
author | Jeremy Allison <jra@samba.org> | 1997-12-12 09:10:01 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-12-12 09:10:01 +0000 |
commit | 273978b7d72955efcc0e0d9e87438b45f51c163d (patch) | |
tree | a31d3f82637ea02497eac9acc921c8665ee54032 | |
parent | 4ac95226fff8e48a0024e2beb78df662fcfeda62 (diff) | |
download | samba-273978b7d72955efcc0e0d9e87438b45f51c163d.tar.gz |
Fixed bug reported by Gert-Jan Vons <Gert-Jan.Vons@ocegr.fr>
with doing a dir /s into a unix directory ending in a ':'.
Jeremy.
-rw-r--r-- | source/smbd/server.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/smbd/server.c b/source/smbd/server.c index 1ddb3204d30..15258e02eaf 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -452,8 +452,20 @@ static BOOL scan_directory(char *path, char *name,int cnum,BOOL docache) return(True); } +#if 0 + /* + * This code I believe is incorrect - and commenting it out + * is the correct fix for the bug mentioned below in the + * comment 'name2 here was changed to dname - since 1.9.16p2 - not sure of reason (jra)'. + * The incoming name can be mangled, and if we de-mangle it + * here it will not compare correctly against the filename (name2) + * read from the directory and then mangled by the name_map_mangle() + * call. We need to mangle both names or neither. + * (JRA). + */ if (mangled) check_mangled_stack(name); +#endif /* open the directory */ if (!(cur_dir = OpenDir(cnum, path, True))) |