Win2k will only accept volume labels in UNICODE. Fixed.... :-(.
authorJeremy Allison <jra@samba.org>
Tue, 28 Mar 2000 02:38:59 +0000 (02:38 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 28 Mar 2000 02:38:59 +0000 (02:38 +0000)
Jeremy.

source/smbd/trans2.c

index 38f2802df3faa2bb2431d121216f6dab530e291c..e6ee65d101d6a63a8d49fe30c9e25ecedfd079df 100644 (file)
@@ -1200,7 +1200,7 @@ static int call_trans2qfsinfo(connection_struct *conn,
       /* NT4 always serves this up as unicode but expects it to be
        * delivered as ascii! (tridge && JRA)
        */
-      if (global_client_caps & CAP_NT_SMBS) {
+      if ((get_remote_arch() != RA_WIN2K) && (global_client_caps & CAP_NT_SMBS)) {
              data_len = 18 + strlen(vname);
              SIVAL(pdata,12,strlen(vname));
              pstrcpy(pdata+18,vname);      
@@ -1208,6 +1208,7 @@ static int call_trans2qfsinfo(connection_struct *conn,
              data_len = 18 + 2*strlen(vname);
              SIVAL(pdata,12,strlen(vname)*2);
              dos_PutUniCode(pdata+18,unix_to_dos(vname,False),sizeof(pstring), False);
+                 SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2)|FLAGS2_UNICODE_STRINGS);
       }
 
       DEBUG(5,("call_trans2qfsinfo : SMB_QUERY_FS_VOLUME_INFO namelen = %d, vol = %s\n",