Ignore:
Timestamp:
Jul 10, 2008, 6:37:04 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Protect recursive remove of tempdir with test on the look and feel of that dir to avoid removing blindly useful dir :-(
File:
1 edited

Legend:

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

    r1967 r1999  
    810810    char *p = NULL;
    811811
    812     if (bkpinfo->tmpdir != NULL) {
     812    if ((bkpinfo->tmpdir != NULL) && (strstr(bkpinfo->tmpdir,"mondo.tmp.") != NULL)) {
    813813        /* purging a potential old tmpdir */
    814814        asprintf(&tmp,"rm -Rf %s",bkpinfo->tmpdir);
Note: See TracChangeset for help on using the changeset viewer.