Changeset 3831 in MondoRescue for branches/3.3/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Mar 4, 2024, 5:47:08 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/mondorestore/mondorestore.c
r3830 r3831 23 23 24 24 extern void wait_until_software_raids_are_prepped(char *, int); 25 extern char *mr_popup_and_get_string(char *, char *, char *); 25 26 26 27 extern void twenty_seconds_til_yikes(void); … … 1991 1992 gotos_suck: 1992 1993 // (NB: MNT_RESTORING is where your filesystem is mounted now, by default) 1993 tmp = mr_popup_and_get_string("Restore path", "Restore files to where?", old_restpath);1994 if (tmp != NULL) {1995 if (!strcmp(tmp , "/")) {1994 tmp1 = mr_popup_and_get_string("Restore path", "Restore files to where?", old_restpath); 1995 if (tmp1 != NULL) { 1996 if (!strcmp(tmp1, "/")) { 1996 1997 if (!ask_me_yes_or_no("Are you sure?")) { 1997 mr_free(tmp );1998 mr_free(tmp1); 1998 1999 goto gotos_suck; 1999 2000 } 2000 mr_asprintf(tmp, "%s", ""); // so we restore to [blank]/file/name :) 2001 mr_free(tmp1); 2002 mr_asprintf(tmp1, "%s", ""); // so we restore to [blank]/file/name :) 2001 2003 } 2002 mr_asprintf(bkpinfo->restore_path, "%s", tmp );2004 mr_asprintf(bkpinfo->restore_path, "%s", tmp1); 2003 2005 log_msg(1, "Restoring subset"); 2004 2006 retval += restore_everything(filelist); … … 2007 2009 mr_asprintf(bkpinfo->restore_path, "%s", old_restpath); 2008 2010 } 2011 mr_free(tmp1); 2009 2012 free_filelist(filelist); 2010 2013 if (!ask_me_yes_or_no("Restore another subset of your backup?")) { … … 2064 2067 "Warning - errors occurred during the restore phase."); 2065 2068 } 2066 end_of_func:2067 2069 log_it("Leaving interactive_mode()"); 2068 2070 return (retval);
Note:
See TracChangeset
for help on using the changeset viewer.