mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r12262: * patch from Brian Moran to fix segv in eventlogadm when not eventlogs
are listed in smb.conf
* initialize the local group description in set_alias_info()
(This used to be commit 58f8b42069
)
This commit is contained in:
parent
91efc453ab
commit
6f91e3a862
@ -4516,6 +4516,8 @@ NTSTATUS _samr_set_aliasinfo(pipes_struct *p, SAMR_Q_SET_ALIASINFO *q_u, SAMR_R_
|
||||
ctr->alias.info3.description.string,
|
||||
sizeof(info.acct_desc)-1 );
|
||||
}
|
||||
else
|
||||
fstrcpy( info.acct_desc, "" );
|
||||
break;
|
||||
default:
|
||||
return NT_STATUS_INVALID_INFO_CLASS;
|
||||
|
@ -51,9 +51,13 @@ static void display_eventlog_names( void )
|
||||
elogs = lp_eventlog_list( );
|
||||
printf( "Active eventlog names (from smb.conf):\n" );
|
||||
printf( "--------------------------------------\n" );
|
||||
for ( i = 0; elogs[i]; i++ ) {
|
||||
printf( "\t%s\n", elogs[i] );
|
||||
}
|
||||
if ( elogs ) {
|
||||
for ( i = 0; elogs[i]; i++ ) {
|
||||
printf( "\t%s\n", elogs[i] );
|
||||
}
|
||||
}
|
||||
else
|
||||
printf( "\t<None specified>\n");
|
||||
}
|
||||
|
||||
int DoAddSourceCommand( int argc, char **argv, BOOL debugflag, char *exename )
|
||||
|
Loading…
Reference in New Issue
Block a user