<div dir="ltr">I'm curious why we're doing a chdir here, and if so any reason we shouldn't be checking the return code to make sure it worked?<div><br></div><div>commands.c:278</div><div><div>/* we must preserve command_file before nuking memory */</div>
<div> (void)chdir("/tmp");</div><div> (void)chdir("nagios-cfw");</div><div> str = strdup(command_file);</div><div> free_memory(get_global_macros());</div><div> command_file = str;</div>
<div> exit(command_file_worker(sv[1]));</div></div><div><br></div><div><br></div><div>Dan</div></div>