Changeset 3613 in MondoRescue for branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Nov 18, 2016, 5:31:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
r3610 r3613 8 8 #include "mr_mem.h" 9 9 #include "mr_str.h" 10 #include "mr_file.h" 10 11 #include "../common/mondostructures.h" 11 12 #include "../common/libmondo.h" … … 127 128 FILE *fout; 128 129 char *incoming = NULL; 130 char *p = NULL; 129 131 char *question = NULL; 130 132 … … 1012 1014 1013 1015 char *command = NULL; 1014 char * tmp;1016 char *old_pwd = NULL; 1015 1017 char *q; 1016 1018 int res = 0; … … 1019 1021 1020 1022 assert(bkpinfo != NULL); 1021 malloc_string(tmp);1022 1023 1023 1024 /* If those files already exist, do not overwrite them later on */ … … 1035 1036 "Filelist and biggielist already recovered from media. Yay!"); 1036 1037 } else { 1037 if (getcwd(tmp, MAX_STR_LEN) == NULL) { 1038 // FIXME 1039 } 1038 old_pwd = mr_getcwd(); 1040 1039 if (chdir(bkpinfo->tmpdir)) { 1041 1040 // FIXME … … 1113 1112 } 1114 1113 1115 if (chdir( tmp)) {1114 if (chdir(old_pwd)) { 1116 1115 // FIXME 1117 1116 } 1117 mr_free(old_pwd); 1118 1118 1119 1119 if (!does_file_exist(g_biggielist_txt)) { … … 1192 1192 } 1193 1193 1194 paranoid_free(tmp);1195 1194 return (filelist); 1196 1195 }
Note:
See TracChangeset
for help on using the changeset viewer.