Changeset 2443 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-tools.c
- Timestamp:
- Sep 29, 2009, 8:43:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-tools.c
r2424 r2443 776 776 } 777 777 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")) { 781 780 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", getenv("TMPDIR")); 782 781 } else if (getenv("TMP")) { 783 782 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", getenv("TMP")); 783 } else if (path != NULL) { 784 mr_asprintf(&tmp, "%s/mondo.tmp.XXXXXX", path); 784 785 } else { 785 786 mr_asprintf(&tmp, "/tmp/mondo.tmp.XXXXXX");
Note:
See TracChangeset
for help on using the changeset viewer.