search for: str_convert

Displaying 3 results from an estimated 3 matches for "str_convert".

2001 Oct 23
1
PATCH to Samba >= 2.2.1, accents and special chars
...ue); cli_send_smb(cli); It is clear the path is known to be in Unix format, and is properly translated to dos stuff. But cli_chkpath, in smbclient 2.2.1a/2.2.2, is now : cli_setup_packet(cli); p = smb_buf(cli->outbuf); *p++ = 4; p += clistr_push(cli, p, path2, -1, STR_TERMINATE | STR_CONVERT); cli_setup_bcc(cli, p); cli_send_smb(cli); And clistr_push says : /* the server likes unicode. give it the works */ if (flags & STR_CONVERT) { dos_PutUniCode(dest, src, dest_len, flags & STR_TERMINATE); } else { ascii_to_unistr(dest, src, dest_len); } No such luck, src...
2003 Jul 18
0
patch: smbclient lost some files
...,6,0); /* ff_resume_key */ +#ifdef DONT_USE_SEARCH_CONTINUE + SSVAL(param,10,4+2); /* resume required + close on end */ +#else SSVAL(param,10,8+4+2); /* continue + resume required + close on end */ +#endif + p = param+12; p += clistr_push(cli, param+12, mask, -1, STR_TERMINATE|STR_CONVERT); @@ -246,6 +251,25 @@ int cli_list_new(struct cli_state *cli,c switch(info_level) { case 260: +#ifdef DONT_USE_SEARCH_CONTINUE + /* + * According to CIFS Technical Document 1.0, + * ff_last_name must point to last FILENAME. + * But Window 2000 points to the first byte...
2003 Dec 01
0
No subject
...-0000 1.1.8.12 --- libsmb/clifile.c 29 Jun 2001 13:57:16 -0000 *************** *** 243,249 **** p = smb_buf(cli->outbuf); /* this alignment and termination is critical for netapp filers. Don't change */ ! p += clistr_align(cli->outbuf, p); len = clistr_push(cli, p, fname, -1, STR_CONVERT); p += len; SSVAL(cli->outbuf,smb_ntcreate_NameLength, len); --- 243,249 ---- p = smb_buf(cli->outbuf); /* this alignment and termination is critical for netapp filers. Don't change */ ! p += clistr_align(cli, p, STR_CONVERT); len = clistr_push(cli, p, fname, -1, STR_CO...