Ignore:
Timestamp:
Sep 29, 2009, 8:43:38 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • priority given to env var for tmpdir
  • fuse FS excluded from tmpdir computation
File:
1 edited

Legend:

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

    r2424 r2443  
    776776    }
    777777
    778     if (path != NULL) {
    779         mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", path);
    780     } else if (getenv("TMPDIR")) {
     778    /* Always take in account env first */
     779    if (getenv("TMPDIR")) {
    781780        mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", getenv("TMPDIR"));
    782781    } else if (getenv("TMP")) {
    783782        mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", getenv("TMP"));
     783    } else if (path != NULL) {
     784        mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", path);
    784785    } else {
    785786        mr_asprintf(&tmp, "/tmp/mondo.tmp.XXXXXX");
Note: See TracChangeset for help on using the changeset viewer.