summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-12-15 18:39:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:51 -0500
commit6f91e3a8629de97468357339f68d789ab01814ce (patch)
tree31c6878769c0ebfdc7dcf15efdafddf14c432e7f /source3/utils
parent91efc453ab420d51998e159d14264cc24be71558 (diff)
downloadsamba-6f91e3a8629de97468357339f68d789ab01814ce.tar.gz
samba-6f91e3a8629de97468357339f68d789ab01814ce.tar.bz2
samba-6f91e3a8629de97468357339f68d789ab01814ce.zip
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 58f8b42069a69c0b61da2609e5706a6c0d512e09)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/eventlogadm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c
index 1d60d6b7ea..a0fc4bcf9d 100644
--- a/source3/utils/eventlogadm.c
+++ b/source3/utils/eventlogadm.c
@@ -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 )