Displaying 8 results from an estimated 8 matches for "str_terminate".
2007 Nov 16
1
3.0.27a out monday.
Just spoke to Jerry, we'll be doing
a 3.0.27a on Monday to fix a regression
that broke smbfs mounts from Linux.
Sorry for the problem.
Jeremy.
2001 Oct 23
1
PATCH to Samba >= 2.2.1, accents and special chars
...unix_to_dos(p,True);
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...
2001 Dec 27
0
bugs?
...imho:
#define PASSDB_FILE_NAME \"passdb.tdb\"
and on my previouse message i wrote about strange records in log file:
[2001/12/28 10:12:09, 0] lib/charcnv.c:convert_string(144)
Required 12, available 11
i\'m find that in lib/charcnv.c in function push_ascii that if set flag
STR_TERMINATE, when src_len increase:
if (flags & STR_TERMINATE) {
src_len++;
}
but dest_len not increase. i\'m try fix it, but that not enouth :(
records in log files now less, but it exist :(
2005 May 30
2
smbclient hangs
Hello,
I'm having problems with using smbclient on a win2k share. The server runs samba 3.0.14a on Solaris 9.
I want to tar the whole directory of a share. Into a file on the server
What I found out so far is, that it works until a maximum file count of 35. It is not size dependant but if the file count in that share exceeds more than 35 the smbclient hangs for ever and with the time is
2003 Jul 18
0
patch: smbclient lost some files
...SIVAL(param,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...
2004 May 26
2
duplicate domains in browse list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i recently upgraded some of my servers from 3.0.2a to 3.0.4
after the upgrade my browselist shows duplicate entries for the domains.
one domains is managed by a samba PDC(providing WINS too) and two samba
BDC's.
the other domains are managed by one samba PDC.
'smbclient -N -L <WINS_SERVER>' shows:
- ---
Workgroup
2003 Apr 05
1
Samba 2.2.8 SEGV in rpcclient getdriver on Solaris 7
Hello
I was trying to figure out how to add printer drivers manually for
downloading to Windows 2000 clients and I came accross this problem.
(The printer drivers were installed some time ago using an earlier
version of samba 2.2.x).
$ dbx /usr/local/samba/bin/rpcclient
(dbx) run xxxxxxx -U yyyyyyy
Running: rpcclient xxxxxxx -U yyyyyyy
(process id 4735)
Password:
rpcclient $> enumprinters
2003 May 29
4
Samba+CUPS+Drivers autodownload
...so
that it reads:
src_len = ( src == NULL ? 0 : strlen_w(src)*2+2 );
instead of just
src_len = strlen_w(src)*2+2;
So that you may find that part easily, here are the
7 lines surrounding and including the offending line:
940 dest_len=MAXUNI-3;
941
942 if (flags & STR_TERMINATE)
943 src_len = strlen_w(src)*2+2;
944
945 dest_len = MIN((src_len/2), (dest_len-1));
946 unistr_to_ascii(dest, src, dest_len);
Another problem is building a fixed version of Samba.
Somehow, the Linux vendors refrain from disclosing
in full detail the files necessary f...