Displaying 10 results from an estimated 10 matches for "dest_len".
2013 Sep 23
28
[PATCH 0/2] add LZ4 kernel decompression support
Linux 3.11 added respective support, so I think we should follow
suit.
1: xen: add LZ4 decompression support
2: libxc: add LZ4 decompression support
Signed-off-by: Jan Beulich <jbeulich@suse.com>
2001 Oct 23
1
PATCH to Samba >= 2.2.1, accents and special chars
...(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 is NOT in Dos format but in Unix format. Hence all my
troubles.
The same ting is done/not done anymore in cli_open, cli_mkdir, etc.
My fix is easy. It's just a call to unix_to_dos in th...
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
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.
2007 Nov 16
4
Samba Upgrade on Centos 3
After today's samba update, Centos 3 boxes can not use samba to
communicate with each other, although Windows and the Centos 3 boxes
see each other correctly as do RHEL5 and the Centos3 boxes. The du
command works well, but ls, cp, cat ,etc produces the error:
PANIC: push_ascii - dest_len == -1
in the server log and
smb_trans2_request: result=-5, setting invalid
in the client.
A similar (but more serious) set of problems was reported in Ubuntu early
this morning after their update.
Is any one else experiencing this problem with samba and Centos 3 after
the update?
regards,
b...
2003 May 29
4
Samba+CUPS+Drivers autodownload
...ed by
changing the line #943 in lib/util_unistr.c 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 refra...
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
2008 Sep 01
0
Feature request: preallocation of directories
...r * program_name = "copy_dirstruct";
#ifdef _LFS64_LARGEFILE
#define LSTAT lstat64
#define STRUCT_STAT struct stat64
#else
#define LSTAT lstat
#define STRUCT_STAT struct stat
#endif
const char *dest_dir = "/mnt";
const char *src_dir = "/";
int blocksize = 4096;
int dest_len = 4;
int silent = 0;
dev_t xdev;
static void usage(void)
{
fprintf(stderr,
"Usage: %s [-RVf] [-+=AacDdijsSu] [-v version] files...\n",
program_name);
exit(1);
}
static int copy_dir_proc(const char *, struct dirent *, void *);
static int copy_dir(const char * name)
{
unsigned lon...
2001 Dec 27
0
bugs?
...ds 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 :(
2012 May 25
0
[PATCH 3/3] gnttab: cleanup
...&s_frame, &s_pg,
+ &source_off, &source_len, 1);
if ( rc != GNTST_okay )
goto error_out;
have_s_grant = 1;
@@ -2019,7 +2024,8 @@ __gnttab_copy(
if ( dest_is_gref )
{
unsigned dest_off, dest_len;
- rc = __acquire_grant_for_copy(dd, op->dest.u.ref, current->domain, 0,
+ rc = __acquire_grant_for_copy(dd, op->dest.u.ref,
+ current->domain->domain_id, 0,
&d_frame, &d_pg, &dest_o...