diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-22 12:38:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:01 -0500 |
commit | ca60193f24bb2540e65c8c272ca2bead3850b456 (patch) | |
tree | 1e1544394002c4412af1efce8f7398c72c52937e /source4/smb_server | |
parent | a3e321d735043ba4ab3360fc090f076478d5b609 (diff) | |
download | samba-ca60193f24bb2540e65c8c272ca2bead3850b456.tar.gz samba-ca60193f24bb2540e65c8c272ca2bead3850b456.tar.bz2 samba-ca60193f24bb2540e65c8c272ca2bead3850b456.zip |
r2520: - finished implementing the server side of the old style search requests
(This used to be commit 4e4859c06b9de5fe60ebd17cfb09eed480b79ec1)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/smb_server/search.c b/source4/smb_server/search.c index a99958d6c6..acd1b6d417 100644 --- a/source4/smb_server/search.c +++ b/source4/smb_server/search.c @@ -81,8 +81,9 @@ static void find_fill_info(struct smbsrv_request *req, SCVAL(p, 21, file->search.attrib); srv_push_dos_date(req->smb_conn, p, 22, file->search.write_time); SIVAL(p, 26, file->search.size); - memset(p+30, ' ', 13); - memcpy(p+30, file->search.name, MIN(strlen(file->search.name)+1, 13)); + memset(p+30, ' ', 12); + memcpy(p+30, file->search.name, MIN(strlen(file->search.name)+1, 12)); + SCVAL(p,42,0); } /* callback function for search first/next */ |