summaryrefslogtreecommitdiffstats
path: root/sys/netsmb
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2002-09-16 09:51:58 +0000
committerbp <bp@FreeBSD.org>2002-09-16 09:51:58 +0000
commit68a4af10a1006170c0077e2cddf97080be401047 (patch)
tree5785d516a92b02e26af0f5c813b8d61e6724c156 /sys/netsmb
parent91e41f5a871f9c5b4cb4b7b6065a296e437a2ae6 (diff)
downloadFreeBSD-src-68a4af10a1006170c0077e2cddf97080be401047.zip
FreeBSD-src-68a4af10a1006170c0077e2cddf97080be401047.tar.gz
Enable browsing of NetApp servers (use ascii mode).
Obtained from: Darwin (PR-3002667) MFC after: 2 weeks
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_rq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netsmb/smb_rq.c b/sys/netsmb/smb_rq.c
index eede5b1..23d9e61 100644
--- a/sys/netsmb/smb_rq.c
+++ b/sys/netsmb/smb_rq.c
@@ -123,7 +123,10 @@ smb_rq_new(struct smb_rq *rqp, u_char cmd)
mb_put_uint8(mbp, cmd);
mb_put_uint32le(mbp, 0); /* DosError */
mb_put_uint8(mbp, vcp->vc_hflags);
- mb_put_uint16le(mbp, vcp->vc_hflags2);
+ if (cmd == SMB_COM_TRANSACTION || cmd == SMB_COM_TRANSACTION_SECONDARY)
+ mb_put_uint16le(mbp, (vcp->vc_hflags2 & ~SMB_FLAGS2_UNICODE));
+ else
+ mb_put_uint16le(mbp, vcp->vc_hflags2);
mb_put_mem(mbp, tzero, 12, MB_MSYSTEM);
rqp->sr_rqtid = (u_int16_t*)mb_reserve(mbp, sizeof(u_int16_t));
mb_put_uint16le(mbp, 1 /*scred->sc_p->p_pid & 0xffff*/);
OpenPOWER on IntegriCloud