mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +03:00
docs/Support.txt: Removed consultant.
source/Makefile: Added Volker's comment. source/nmbd_become_lmb.c: source/nmbd_browsesync.c: source/nmbd_incomingdgrams.c: Fixed userdata alignment problems. source/mem_man/mem_man.c: source/mem_man/mem_man.h: added smb_ prefix to stop namespace collisions. Jeremy.
This commit is contained in:
@ -37,7 +37,7 @@ Region Number of entries
|
|||||||
AMERICA - USA 36
|
AMERICA - USA 36
|
||||||
ASIA 1
|
ASIA 1
|
||||||
AUSTRALIA & NEW ZEALAND 18
|
AUSTRALIA & NEW ZEALAND 18
|
||||||
CANADA 9
|
CANADA 8
|
||||||
EUROPE 36
|
EUROPE 36
|
||||||
MIDDLE EAST 1
|
MIDDLE EAST 1
|
||||||
|
|
||||||
@ -1098,17 +1098,6 @@ Specializing in Turnkey Windows NT Network environments with emphasis on
|
|||||||
Legacy UNIX System integration using Samba.
|
Legacy UNIX System integration using Samba.
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
ONTARIO - CANADA
|
|
||||||
|
|
||||||
Bilyana Aleksic |Email: baleksic@atitech.ca |
|
|
||||||
| |
|
|
||||||
ATI Technologies Inc. |Phone: 905-882-2600 x3179 |
|
|
||||||
75 Tiverton Court |Fax : 905-475-3930 |
|
|
||||||
Unionville, Ontario | |
|
|
||||||
Canada, L3R 9S3 | |
|
|
||||||
------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
ONTARIO - CANADA
|
ONTARIO - CANADA
|
||||||
|
|
||||||
|
@ -437,18 +437,18 @@ void mdfour(unsigned char *out, unsigned char *in, int n);
|
|||||||
|
|
||||||
/*The following definitions come from mem_man/mem_man.c */
|
/*The following definitions come from mem_man/mem_man.c */
|
||||||
|
|
||||||
void *mem_malloc(size_t size,char *file,int line);
|
void *smb_mem_malloc(size_t size,char *file,int line);
|
||||||
char *mem_strdup(char *s, char *file, int line);
|
char *smb_mem_strdup(char *s, char *file, int line);
|
||||||
int mem_free(void *ptr,char *file,int line);
|
int smb_mem_free(void *ptr,char *file,int line);
|
||||||
void mem_write_info(void *ptr,FILE *outfile);
|
void smb_mem_write_info(void *ptr,FILE *outfile);
|
||||||
char *mem_query_file(void *ptr);
|
char *smb_mem_query_file(void *ptr);
|
||||||
int mem_query_line(void *ptr);
|
int smb_mem_query_line(void *ptr);
|
||||||
int mem_test(void *ptr);
|
int smb_mem_test(void *ptr);
|
||||||
void mem_write_status(FILE *outfile);
|
void smb_mem_write_status(FILE *outfile);
|
||||||
void mem_write_verbose(FILE *outfile);
|
void smb_mem_write_verbose(FILE *outfile);
|
||||||
void mem_write_errors(FILE *outfile);
|
void smb_mem_write_errors(FILE *outfile);
|
||||||
void mem_set_multiplier(int multiplier);
|
void smb_mem_set_multiplier(int multiplier);
|
||||||
void *mem_resize(void *ptr,size_t newsize);
|
void *smb_mem_resize(void *ptr,size_t newsize);
|
||||||
|
|
||||||
/*The following definitions come from message.c */
|
/*The following definitions come from message.c */
|
||||||
|
|
||||||
|
@ -248,7 +248,6 @@ void unbecome_local_master_browser(struct subnet_record *subrec, struct work_rec
|
|||||||
struct name_record *namerec;
|
struct name_record *namerec;
|
||||||
struct nmb_name nmbname;
|
struct nmb_name nmbname;
|
||||||
struct userdata_struct *userdata;
|
struct userdata_struct *userdata;
|
||||||
char ud[sizeof(struct userdata_struct) + sizeof(fstring)+1];
|
|
||||||
|
|
||||||
/* Sanity check. */
|
/* Sanity check. */
|
||||||
|
|
||||||
@ -268,9 +267,11 @@ in workgroup %s on subnet %s\n",
|
|||||||
work->mst_state = MST_UNBECOMING_MASTER;
|
work->mst_state = MST_UNBECOMING_MASTER;
|
||||||
|
|
||||||
/* Setup the userdata for the MSBROWSE name release. */
|
/* Setup the userdata for the MSBROWSE name release. */
|
||||||
/* Setup the userdata_struct - this is copied so we can use
|
if((userdata = (struct userdata_struct *)malloc( sizeof(struct userdata_struct) + sizeof(fstring)+1)) == NULL)
|
||||||
a stack variable for this. */
|
{
|
||||||
userdata = (struct userdata_struct *)ud;
|
DEBUG(0,("unbecome_local_master_browser: malloc fail.\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
userdata->copy_fn = NULL;
|
userdata->copy_fn = NULL;
|
||||||
userdata->free_fn = NULL;
|
userdata->free_fn = NULL;
|
||||||
@ -286,6 +287,8 @@ in workgroup %s on subnet %s\n",
|
|||||||
release_msbrowse_name_fail,
|
release_msbrowse_name_fail,
|
||||||
userdata);
|
userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free((char *)userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -481,7 +484,6 @@ void become_local_master_browser(struct subnet_record *subrec, struct work_recor
|
|||||||
{
|
{
|
||||||
struct server_record *servrec;
|
struct server_record *servrec;
|
||||||
struct userdata_struct *userdata;
|
struct userdata_struct *userdata;
|
||||||
char ud[sizeof(struct userdata_struct) + sizeof(fstring)+1];
|
|
||||||
|
|
||||||
/* Sanity check. */
|
/* Sanity check. */
|
||||||
if (!lp_local_master())
|
if (!lp_local_master())
|
||||||
@ -516,9 +518,12 @@ in workgroup %s on subnet %s\n",
|
|||||||
/* Tell the namelist writer to write out a change. */
|
/* Tell the namelist writer to write out a change. */
|
||||||
subrec->work_changed = True;
|
subrec->work_changed = True;
|
||||||
|
|
||||||
/* Setup the userdata_struct - this is copied so we can use
|
/* Setup the userdata_struct. */
|
||||||
a stack variable for this. */
|
if((userdata = (struct userdata_struct *)malloc(sizeof(struct userdata_struct) + sizeof(fstring)+1)) == NULL)
|
||||||
userdata = (struct userdata_struct *)ud;
|
{
|
||||||
|
DEBUG(0,("become_local_master_browser: malloc fail.\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
userdata->copy_fn = NULL;
|
userdata->copy_fn = NULL;
|
||||||
userdata->free_fn = NULL;
|
userdata->free_fn = NULL;
|
||||||
@ -530,6 +535,8 @@ in workgroup %s on subnet %s\n",
|
|||||||
become_local_master_stage1,
|
become_local_master_stage1,
|
||||||
become_local_master_fail1,
|
become_local_master_fail1,
|
||||||
userdata);
|
userdata);
|
||||||
|
|
||||||
|
free((char *)userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
|
@ -379,7 +379,6 @@ static void find_domain_master_name_query_success(struct subnet_record *subrec,
|
|||||||
struct work_record *work;
|
struct work_record *work;
|
||||||
struct nmb_name nmbname;
|
struct nmb_name nmbname;
|
||||||
struct userdata_struct *userdata;
|
struct userdata_struct *userdata;
|
||||||
char ud[sizeof(struct userdata_struct) + sizeof(fstring)+1];
|
|
||||||
|
|
||||||
if (!(work = find_workgroup_on_subnet(subrec, q_name->name))) {
|
if (!(work = find_workgroup_on_subnet(subrec, q_name->name))) {
|
||||||
DEBUG(0, ("find_domain_master_name_query_success: failed to find \
|
DEBUG(0, ("find_domain_master_name_query_success: failed to find \
|
||||||
@ -412,7 +411,11 @@ workgroup %s\n", q_name->name ));
|
|||||||
|
|
||||||
/* Setup the userdata_struct - this is copied so we can use
|
/* Setup the userdata_struct - this is copied so we can use
|
||||||
a stack variable for this. */
|
a stack variable for this. */
|
||||||
userdata = (struct userdata_struct *)ud;
|
if((userdata = (struct userdata_struct *)malloc(sizeof(struct userdata_struct) + sizeof(fstring)+1)) == NULL)
|
||||||
|
{
|
||||||
|
DEBUG(0, ("find_domain_master_name_query_success: malloc fail.\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
userdata->copy_fn = NULL;
|
userdata->copy_fn = NULL;
|
||||||
userdata->free_fn = NULL;
|
userdata->free_fn = NULL;
|
||||||
@ -423,6 +426,8 @@ workgroup %s\n", q_name->name ));
|
|||||||
domain_master_node_status_success,
|
domain_master_node_status_success,
|
||||||
domain_master_node_status_fail,
|
domain_master_node_status_fail,
|
||||||
userdata);
|
userdata);
|
||||||
|
|
||||||
|
free((char *)userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -547,7 +547,7 @@ static void send_backup_list_response(struct subnet_record *subrec,
|
|||||||
{
|
{
|
||||||
char outbuf[1024];
|
char outbuf[1024];
|
||||||
char *p, *countptr, *nameptr;
|
char *p, *countptr, *nameptr;
|
||||||
int count = 0;
|
unsigned int count = 0;
|
||||||
int len;
|
int len;
|
||||||
struct server_record *servrec;
|
struct server_record *servrec;
|
||||||
|
|
||||||
@ -582,7 +582,7 @@ static void send_backup_list_response(struct subnet_record *subrec,
|
|||||||
if((sizeof(outbuf) - len) < 16)
|
if((sizeof(outbuf) - len) < 16)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if(count >= max_number_requested)
|
if(count >= (unsigned int)max_number_requested)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if(strnequal(servrec->serv.name, myname,15))
|
if(strnequal(servrec->serv.name, myname,15))
|
||||||
|
Reference in New Issue
Block a user