diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-06-06 06:01:45 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-06-06 06:01:45 +0000 |
commit | 7e82bf284c71665f2038e5f6b64ffce9c1d73092 (patch) | |
tree | 031b2356fbbd561174d569914587f49e9f531756 | |
parent | dc5f0b28cf8c90a1cda08955c4029b2d3902420e (diff) | |
download | samba-7e82bf284c71665f2038e5f6b64ffce9c1d73092.tar.gz samba-7e82bf284c71665f2038e5f6b64ffce9c1d73092.tar.bz2 samba-7e82bf284c71665f2038e5f6b64ffce9c1d73092.zip |
2 more places where win2003 forces UCS2
(This used to be commit b64f6e52ec8aa0892b405d3360079ababc8527f4)
-rw-r--r-- | source3/smbd/trans2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index ba6162833b..2bf250a980 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1381,7 +1381,7 @@ static int call_trans2qfsinfo(connection_struct *conn, char *inbuf, char *outbuf SIVAL(pdata,4,255); /* Max filename component length */ /* NOTE! the fstype must *not* be null terminated or win98 won't recognise it and will think we can't do long filenames */ - len = srvstr_push(outbuf, pdata+12, fstype, -1, 0); + len = srvstr_push(outbuf, pdata+12, fstype, -1, STR_UNICODE); SIVAL(pdata,8,len); data_len = 12 + len; break; @@ -1403,7 +1403,7 @@ static int call_trans2qfsinfo(connection_struct *conn, char *inbuf, char *outbuf SIVAL(pdata,8,str_checksum(lp_servicename(snum)) ^ (str_checksum(local_machine)<<16)); - len = srvstr_push(outbuf, pdata+18, vname, -1, 0); + len = srvstr_push(outbuf, pdata+18, vname, -1, STR_UNICODE); SIVAL(pdata,12,len); data_len = 18+len; DEBUG(5,("call_trans2qfsinfo : SMB_QUERY_FS_VOLUME_INFO namelen = %d, vol=%s serv=%s\n", |