Changeset 183 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Dec 13, 2005, 2:20:45 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-tools.c
r171 r183 190 190 char *home_sz = NULL; 191 191 192 asprintf(&home_sz, 193 call_program_and_get_last_line_of_output 194 ("find /usr/lib/ /usr/local/ /usr/share/ /usr/local/share/ /opt/ /ramdisk/usr/share/ -type d -maxdepth 2 -name include -prune -o -type d -maxdepth 2 -path '*/mondo/restore-scripts' -printf '%h\n' 2> /dev/null")); 195 196 if (home_sz[0] == '\0') { 197 paranoid_free(home_sz); 198 asprintf(&home_sz, 199 call_program_and_get_last_line_of_output 200 ("find /usr -type d -path '*/mondo/restore-scripts' -follow -maxdepth 3 -printf '%h\n' 2> /dev/null")); 201 } 202 if (home_sz[0] == '\0') { 203 paranoid_free(home_sz); 204 home_sz = NULL; 205 } else { 206 log_it("mondoarchive home found at %s", home_sz); 207 } 192 asprintf(&home_sz, MONDO_LIB); 208 193 return (home_sz); 209 194 }
Note:
See TracChangeset
for help on using the changeset viewer.