Changeset 2769 in MondoRescue for branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Apr 21, 2011, 1:48:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-rstr-newt.c
r2767 r2769 2281 2281 { 2282 2282 2283 bool HDD = FALSE; 2284 char *subdir_path; 2283 2285 /** initialize ********************************************************/ 2284 2286 … … 2311 2313 "What is the disk format of the device? (Hit ENTER if you don't know.)", 2312 2314 isodir_format, 16)) { 2315 if (popup_with_button("Are you restoring from an external hard drive ?", "Yes", "No")) { 2316 HDD = TRUE; 2317 } 2313 2318 if (popup_and_get_string 2314 2319 ("ISO Mode - path", 2315 "At what path on this device can the ISO files be found ? (Use /tmp/isodir if restoring from HDD)",2316 2320 "At what path on this device can the ISO files be found ?", 2321 isodir_path, MAX_STR_LEN / 4)) { 2317 2322 strip_spaces(isodir_device); 2318 2323 strip_spaces(isodir_format); 2319 2324 strip_spaces(isodir_path); 2320 2325 log_it("isodir_device = %s - isodir_format = %s - isodir_path = %s", isodir_device, isodir_format, isodir_path); 2326 if (HDD) { 2327 /* We need an additional param */ 2328 mr_asprintf(&subdir_path, "%s", isodir_path); 2329 bkpinfo->subdir = subdir_path; 2330 strcpy(isodir_path, "/tmp/isodir"); 2331 } 2321 2332 return (TRUE); 2322 2333 }
Note:
See TracChangeset
for help on using the changeset viewer.