On 01-07-2011 12:32, Rajiv Andrade wrote: > > On 01-07-2011 12:02, Kent Yoder wrote: >> Hi Stefan, >> >>> =================================================================== >>> --- trousers.orig/src/tcsd/svrside.c >>> +++ trousers/src/tcsd/svrside.c >>> @@ -44,6 +44,7 @@ struct tpm_properties tpm_metrics; >>> static volatile int hup = 0, term = 0; >>> extern char *optarg; >>> int sd; >>> +char *tcsd_config_file; >> You'll need to initialize tcsd_config_file to NULL here, or you could >> initialize it to TCSD_CONFIG_FILE and let getopts overwrite it. That way >> it'll >> always print properly in the LogError calls in tcsd_conf.c. >> >> Kent > It's handled before it gets ever used, isn't it? > > @@ -244,6 +250,9 @@ main(int argc, char **argv) > } > } > > + if (!tcsd_config_file) > + tcsd_config_file = TCSD_DEFAULT_CONFIG_FILE; > + > if ((result = tcsd_startup())) > return (int)result; > tcsd_config_file can't be guaranteed to be initialized with 0 indeed.
Rajiv ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
