diff --git a/log_manager/log_manager.cc b/log_manager/log_manager.cc index ba16db52f..b31ae6112 100644 --- a/log_manager/log_manager.cc +++ b/log_manager/log_manager.cc @@ -1761,7 +1761,6 @@ static bool fnames_conf_init( case 's': /** record list of log file ids for later use */ - if(do_syslog) shmem_id_str = optarg; break; case 'h': @@ -1793,12 +1792,14 @@ static bool fnames_conf_init( strdup(get_logpath_default()) : fn->fn_logpath; /** Set identity string for syslog if it is not set in config.*/ + if(do_syslog) + { syslog_ident_str = (syslog_ident_str == NULL ? (argv == NULL ? strdup(program_invocation_short_name) : strdup(*argv)) : syslog_ident_str); - + } /* ss_dfprintf(stderr, "\n\n\tCommand line : "); for (i=0; i