Ignore:
Timestamp:
Nov 10, 2012, 5:05:37 AM (11 years ago)
Author:
Bruno Cornec
Message:

r5035@localhost: bruno | 2012-11-09 03:17:01 +0100

  • Fix a compilation error and most compilation warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-tools.c

    r3054 r3060  
    325325{
    326326#ifdef __FreeBSD__
    327     system("kldstat | grep msdosfs || kldload msdosfs 2> /dev/null");
    328     system("kldstat | grep ext2fs  || kldload ext2fs 2> /dev/null");
     327    paranoid_system("kldstat | grep msdosfs || kldload msdosfs 2> /dev/null");
     328    paranoid_system("kldstat | grep ext2fs  || kldload ext2fs 2> /dev/null");
    329329#else
    330     system("modprobe -a msdos vfat loop &> /dev/null");
     330    paranoid_system("modprobe -a msdos vfat loop &> /dev/null");
    331331#endif
    332332}
     
    747747        /* purging a potential old tmpdir */
    748748        log_it("Purging old tmpdir %s", bkpinfo->tmpdir);
    749         chdir("/tmp");
     749        if (chdir("/tmp")) {
     750            // FIXME
     751        }
    750752        mr_asprintf(&tmp,"rm -Rf %s",bkpinfo->tmpdir);
    751         (void)system(tmp);
     753        paranoid_system(tmp);
    752754        paranoid_free(tmp);
    753755    }
Note: See TracChangeset for help on using the changeset viewer.