Ignore:
Timestamp:
Aug 18, 2009, 3:25:29 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3342@localhost: bruno | 2009-08-14 00:46:51 +0200

  • Another round of strcpy suppressions
  • find_home_of_exe() now allocates memory which has to be freed by the caller
  • Supress useless sz_last_suffix()
  • mr_getline now has the same interface as the other mr_mem functions
  • valgrind and compiler warnings fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-archive.c

    r2330 r2331  
    404404    if (bkpinfo->backup_media_type == dvd) {
    405405#ifdef DVDRWFORMAT
    406         if (!find_home_of_exe("dvd+rw-format")) {
    407             fatal_error
    408                 ("Cannot find dvd+rw-format. Please install it or fix your PATH.");
    409         }
     406        tmp = find_home_of_exe("dvd+rw-format");
     407        if (!tmp) {
     408            mr_free(tmp);
     409            fatal_error("Cannot find dvd+rw-format. Please install it or fix your PATH.");
     410        }
     411        mr_free(tmp);
    410412#endif
    411         if (!find_home_of_exe("growisofs")) {
    412             fatal_error
    413                 ("Cannot find growisofs. Please install it or fix your PATH.");
    414         }
     413        tmp = find_home_of_exe("growisofs");
     414        if (!tmp) {
     415            mr_free(tmp);
     416            fatal_error("Cannot find growisofs. Please install it or fix your PATH.");
     417        }
     418        mr_free(tmp);
    415419    }
    416420
     
    28772881        mr_asprintf(checksum_line, "IGNORE");
    28782882        log_msg(2, "Not calculating checksum for %s: it would take too long", biggie_filename);
    2879         if ( !find_home_of_exe("ntfsresize")) {
     2883        tmp = find_home_of_exe("ntfsresize");
     2884        if (!tmp) {
     2885            mr_free(tmp);
    28802886            fatal_error("ntfsresize not found");
    28812887        }
     2888        mr_free(tmp);
     2889
    28822890        mr_asprintf(command, "ntfsresize --force --info %s|grep '^You might resize at '|cut -d' ' -f5", biggie_filename);
    28832891        log_it("command = %s", command);
Note: See TracChangeset for help on using the changeset viewer.