summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-06-06 06:01:45 +0000
committerAndrew Tridgell <tridge@samba.org>2003-06-06 06:01:45 +0000
commit7e82bf284c71665f2038e5f6b64ffce9c1d73092 (patch)
tree031b2356fbbd561174d569914587f49e9f531756
parentdc5f0b28cf8c90a1cda08955c4029b2d3902420e (diff)
downloadsamba-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.c4
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",