From 8f5375fa61acb4da83e855e40402d12be01a8c68 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 16 Jan 2012 18:42:16 +0100 Subject: cifs: updated cifs/smb client to quintiles latest version --- sys/src/cmd/cifs/pack.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/src/cmd/cifs/pack.c') diff --git a/sys/src/cmd/cifs/pack.c b/sys/src/cmd/cifs/pack.c index 1f0230220..16285bfc3 100644 --- a/sys/src/cmd/cifs/pack.c +++ b/sys/src/cmd/cifs/pack.c @@ -27,7 +27,7 @@ ppath(Pkt *p, char *str) if(!str) return s; - if(p->s->caps & CAP_UNICODE){ + if(p->s->flags2 & FL2_UNICODE){ if(((p->pos - p->buf) % 2) != 0) /* pad to even offset */ p8(p, 0); while(*str){ @@ -57,7 +57,7 @@ pstr(Pkt *p, char *str) if(!str) return s; - if(p->s->caps & CAP_UNICODE){ + if(p->s->flags2 & FL2_UNICODE){ if(((p->pos - p->buf) % 2) != 0) p8(p, 0); /* pad to even offset */ while(*str){ @@ -238,7 +238,10 @@ gstr(Pkt *p, char *str, int n) if(!n || !str) return; - if(p->s->caps & CAP_UNICODE){ + if(p->flags2 & FL2_UNICODE){ + if(((p->pos - p->buf) % 2) != 0) + g8(p); /* strip padding to even offset */ + i = 0; while(*p->pos && n && p->pos < p->eop){ r = gl16(p); -- cgit v1.2.3