Displaying 7 results from an estimated 7 matches for "unix_to_dos".
2001 Oct 23
1
PATCH to Samba >= 2.2.1, accents and special chars
...he 'core' of my grudge seems to lie in the new clistr_push function, which
does not exist in release 2.2.0. A 'cd directory' command is thus processed by
cli_chkpath, which does :
cli_setup_packet(cli);
p = smb_buf(cli->outbuf);
*p++ = 4;
safe_strcpy(p,path2,strlen(path2));
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_TERMINA...
2000 Jan 30
0
More checks for param/loadparm.c
.../* run standard_sub_basic on netbios name... needed because
> global_myname is not accessed through any lp_ macro.
> Nicolas Williams <Nicolas.Williams@wdr.com> */
> standard_sub_basic(netbios_name);
> #endif
> pstrcpy((char *)parm_ptr,netbios_name);
> unix_to_dos((char *)parm_ptr, True); /* FLAG_DOS_STRING --davecb */
> strupper((char *)parm_ptr);
> DEBUG(4,("handle_netbios_name: set netbios name to: %s\n",
> (char *)parm_ptr));
> return (True);
2132a2151,2250
> handle_netbios_aliases -- validate and insert multip...
2003 Apr 13
1
disabling version number
Hi there,
is there any possibility of disabling Samba's version number output (e.g.
with smbclient) without having to manually edit it in the source code?
I don't want anyone to see my Samba's version number...
Thanks
Florian
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
....7/source/param/loadparm.c Wed Apr 26 02:07:00 2000
+++ samba-2.0.7viv/source/param/loadparm.c Wed Mar 21 14:04:55 2001
@@ -1581,6 +1581,7 @@
string_set(&iSERVICE(i).szPath,tmpdir());
string_set(&iSERVICE(i).szUsername,"");
string_set(&iSERVICE(i).comment,comment);
+ unix_to_dos(iSERVICE(i).comment,True);
string_set(&iSERVICE(i).fstype,"IPC");
iSERVICE(i).status = False;
iSERVICE(i).iMaxConnections = 0;
2003 Dec 01
0
No subject
...getservicebyname(name2,NULL);
if (i >= 0)
return(i);
}
@@ -1538,7 +1547,7 @@
init_service(pSERVICE(i));
copy_service(pSERVICE(i),&tservice,NULL);
if (name) {
- string_set(&iSERVICE(i).szService,name);
+ string_set(&iSERVICE(i).szService,name2);
unix_to_dos(iSERVICE(i).szService, True);
}
return(i);
---- Cut Here ----
We have not examined under Samba 2.2.0 yet.
---- Cut Here ---- For 2.2.0 ----
--- param/loadparm.c.org Tue Jun 12 01:38:17 2001
+++ param/loadparm.c Tue Jun 12 01:42:07 2001
@@ -1750,13 +1750,22 @@
int i;
service tservice;...
2003 Dec 01
0
No subject
...6
make_nmb_name(&namerec->name, name, type);
....
}
// here is what we do later
void make_nmb_name( struct nmb_name *n, const char *name, int type)
{
extern pstring global_scope;
memset( (char *)n, '\0', sizeof(struct nmb_name) );
StrnCpy( n->name, name, 15 );
// here, unix_to_dos calls recoding again somewhere:
unix_to_dos(n->name, True);
// NAME GETS RECODED TWICE!
strupper( n->name );
n->name_type = (unsigned int)type & 0xFF;
StrnCpy( n->scope, global_scope, 63 );
strupper( n->scope );
};
My quick-and-dirty work around was is to use my_ma...
2003 Dec 01
0
No subject
...amba <samba.lists.samba.org>
List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/samba>, <mailto:samba-request@lists.samba.org?subject=unsubscribe>
List-Archive: http://lists.samba.org/pipermail/samba/
Does anyone know where I can find the code for these three functions??
unix_to_dos()
secrets_fetch()
trust_keystr()
THANKS!
Return-Path: <cmagnus@anngel.com.jm>
Delivered-To: samba@samba.org
Received: from mail.anngel.com.jm (ns2.anngel.com [207.241.175.2]) by
lists.samba.org (Postfix) with ESMTP id 5E4654E7C for
<samba@samba.org>; Tue, 26 Jun 2001 13:25:03 -070...