Changeset 843 for branches


Ignore:
Timestamp:
Sep 26, 2006, 3:10:17 PM (13 years ago)
Author:
andree
Message:

Ensure that we leave the inner while loop when counting in mr_stresc().
(Thanks Bruno!)
Use mr_stresc() to properly escape strings submitted to system() in
gen_aux_list(). (Also fixes Debian bug #379966.)

Location:
branches/stable/mondo/mondo/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-filelist.c

    r831 r843  
    592592        }
    593593        log_msg(8, "Analyzing %s", file_to_analyze);
    594         sprintf(syscall, syscall_sprintf, file_to_analyze);
     594        sprintf(syscall, syscall_sprintf, mr_stresc(file_to_analyze, "`$\\\"", '\\'));
    595595        strcat(syscall, " 2>> /dev/null");  // " MONDO_LOGFILE);
    596596        call_exe_and_pipe_output_to_fd(syscall, pout);
  • branches/stable/mondo/mondo/common/mr_string.c

    r831 r843  
    6767                // Found it, skip the rest.
    6868                cnt++;
     69                inptr++;
    6970                break;
    7071            }
Note: See TracChangeset for help on using the changeset viewer.