mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
largely rewrote smbpasswd so that the code is understandable. This
should allow us to call a function in swat rather than piping to smbpasswd. while doing this I also fixed quite a few "const char *" versus "char *" issues that cropped up while using const to track down bugs in the code. This led to changes in several generic functions. The smbpasswd changes should be correct but they have not been extensively tested. At least if I have introduced bugs then we should be able to fix them more easily than before.
This commit is contained in:
@@ -762,7 +762,7 @@ static int build_dgram(char *buf,struct packet_struct *p)
|
||||
/*******************************************************************
|
||||
build a nmb name
|
||||
*******************************************************************/
|
||||
void make_nmb_name( struct nmb_name *n, char *name, int type, char *this_scope )
|
||||
void make_nmb_name( struct nmb_name *n, const char *name, int type, const char *this_scope )
|
||||
{
|
||||
memset( (char *)n, '\0', sizeof(struct nmb_name) );
|
||||
StrnCpy( n->name, name, 15 );
|
||||
|
||||
Reference in New Issue
Block a user