Changeset 1087 in MondoRescue for branches/stable/mondo/src/mondorestore
- Timestamp:
- Feb 2, 2007, 11:31:00 PM (17 years ago)
- Location:
- branches/stable/mondo/src/mondorestore
- Files:
-
- 2 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); -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r1080 r1087 978 978 979 979 read_cfg_var(cfg_file, "acl", value); 980 if (strstr(value, " TRUE")) {980 if (strstr(value, "yes")) { 981 981 mr_asprintf(&g_getfacl,"setfacl"); 982 982 log_msg(1, "We will restore ACLs"); … … 986 986 } 987 987 read_cfg_var(cfg_file, "xattr", value); 988 if (strstr(value, " TRUE")) {988 if (strstr(value, "yes")) { 989 989 mr_asprintf(&g_getfattr,"setfattr"); 990 990 log_msg(1, "We will restore XATTRs");
Note:
See TracChangeset
for help on using the changeset viewer.