diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-09 21:06:06 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-09 21:06:06 +0000 |
commit | 9a3542b80e6290f45fcba4a698a2ef0fd3260127 (patch) | |
tree | de107830cb9f69d3f078b86605c87db97a16b6a1 /source3/smbd | |
parent | dc1c14ca22555e55b9d784980d50ac6ad763f188 (diff) | |
download | samba-9a3542b80e6290f45fcba4a698a2ef0fd3260127.tar.gz samba-9a3542b80e6290f45fcba4a698a2ef0fd3260127.tar.bz2 samba-9a3542b80e6290f45fcba4a698a2ef0fd3260127.zip |
Patch from Steve French to fix difference in responses to
smbclient //server/share
ls /
on Samba and Windows 2000.
Jeremy.
(This used to be commit b3fe55838d23001f634f6a75f08330718353d3ad)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 8def7c0250..d21d6d2cda 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -906,7 +906,11 @@ close_if_end = %d requires_resume_key = %d level = %d, max_data_bytes = %d\n", p = strrchr_m(directory,'/'); if(p == NULL) { - pstrcpy(mask,directory); + /* Windows and OS/2 systems treat search on the root '\' as if it were '\*' */ + if((directory[0] == '.') && (directory[1] == '\0')) + pstrcpy(mask,"*"); + else + pstrcpy(mask,directory); pstrcpy(directory,"./"); } else { pstrcpy(mask,p+1); |