Changeset 1087 in MondoRescue for branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
- Timestamp:
- Feb 2, 2007, 11:31:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondorestore/mondo-rstr-newt.c
r1080 r1087 5 5 #include "mr_mem.h" 6 6 7 extern char *g_mondo_cfg_file; // where m*ndo-restore.cfg (the config file) is stored 7 8 8 9 /** … … 2265 2266 char *isodir_path, bool nuke_me_please) 2266 2267 { 2268 char *value = NULL; 2267 2269 2268 2270 /** initialize ********************************************************/ 2271 malloc_string(value); 2269 2272 2270 2273 assert(isodir_device != NULL); … … 2272 2275 assert(isodir_path != NULL); 2273 2276 2274 log_it("%d - AAA - isodir_path = %s", isodir_path);2277 log_it("%d - AAA - isodir_path = %s", __LINE__, isodir_path); 2275 2278 isodir_format[0] = '\0'; 2276 2279 if (isodir_device[0] == '\0') { … … 2280 2283 strcpy(isodir_path, "/"); 2281 2284 } 2282 if ( does_file_exist("/tmp/NFS-SERVER-PATH")) {2283 strcpy(isodir_device, last_line_of_file("/tmp/NFS-SERVER-MOUNT"));2285 if (read_cfg_var(g_mondo_cfg_file, "nfs-server-path", value) == 0) { 2286 read_cfg_var(g_mondo_cfg_file, "nfs-server-mount", isodir_device); 2284 2287 strcpy(isodir_format, "nfs"); 2285 strcpy(isodir_path, last_line_of_file("/tmp/NFS-SERVER-PATH")); 2286 } 2288 strcpy(isodir_path, value); 2289 } 2290 mr_free(value); 2291 2287 2292 if (nuke_me_please) { 2288 2293 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.