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?

commands.c:278
/* we must preserve command_file before nuking memory */
        (void)chdir("/tmp");
        (void)chdir("nagios-cfw");
        str = strdup(command_file);
        free_memory(get_global_macros());
        command_file = str;
        exit(command_file_worker(sv[1]));


Dan

Reply via email to