Changeset 2444 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-tools.c
- Timestamp:
- Sep 30, 2009, 4:44:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-tools.c
r2428 r2444 742 742 } 743 743 744 if (path != NULL) { 745 mr_asprintf(tmp, "%s/mondo.tmp.XXXXXX", path); 746 } else if (getenv("TMPDIR")) { 744 /* Always take in account env first */ 745 if (getenv("TMPDIR")) { 747 746 mr_asprintf(tmp, "%s/mondo.tmp.XXXXXX", getenv("TMPDIR")); 748 747 } else if (getenv("TMP")) { 749 748 mr_asprintf(tmp, "%s/mondo.tmp.XXXXXX", getenv("TMP")); 749 } else if (path != NULL) { 750 mr_asprintf(tmp, "%s/mondo.tmp.XXXXXX", path); 750 751 } else { 751 752 mr_asprintf(tmp, "/tmp/mondo.tmp.XXXXXX");
Note:
See TracChangeset
for help on using the changeset viewer.