Changeset 2607 in MondoRescue for branches/2.2.10/mondo/src
- Timestamp:
- Mar 22, 2010, 1:56:46 PM (15 years ago)
- Location:
- branches/2.2.10/mondo/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-fork.c
r2546 r2607 66 66 log_msg(9, "Loop result: ***%s***", tmp); 67 67 */ 68 /* There is empty cont ant at the end of the file that needs to be skiped */68 /* There is empty content at the end of the file that needs to be skiped */ 69 69 if (strlen(tmp) > 0) { 70 70 mr_free(result); … … 73 73 mr_free(tmp); 74 74 } 75 log_msg( 4, "Result: %s", result);75 log_msg(9, "Pre-Result: %s", result); 76 76 mr_strip_spaces(result); 77 77 paranoid_pclose(fin); … … 80 80 } 81 81 mr_free(tmpf); 82 log_msg(4, "Result: %s", result); 82 83 return(result); 83 84 } 84 85 86 87 88 89 85 90 86 #define MONDO_POPMSG "Your PC will not retract the CD tray automatically. Please call mondoarchive with the -m (manual CD tray) flag." -
branches/2.2.10/mondo/src/common/libmondo-tools.c
r2510 r2607 1035 1035 * @param label What to read from the file. 1036 1036 * @param value Where to put it. 1037 * @return 0 for success, 1 for failure.1037 * @return value of the param or NULL if not found 1038 1038 */ 1039 1039 char *read_cfg_var(char *config_file, char *label) … … 1050 1050 log_to_screen("(read_cfg_var) Cannot find %s config file", config_file); 1051 1051 return (NULL); 1052 /* BERLIOS: not sure the usage of this one ?1053 } else if ((value != NULL) && (strstr(value, "/dev/") && strstr(value, "t0") && !strcmp(label, "media-dev"))) {1054 log_msg(2, "FYI, I can't read new value for %s - already got %s", label, value);1055 return (0);1056 */1057 1052 } else { 1058 1053 mr_asprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", label, config_file); … … 1060 1055 mr_free(command); 1061 1056 1057 log_msg(4, "Configuration item %s is %s", label, value); 1062 1058 if (strlen(value) == 0) { 1063 1059 return (NULL); -
branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c
r2508 r2607 709 709 media_specified_by_user = bkpinfo->backup_media_type; // or 'none', if not specified 710 710 711 if ((value = read_cfg_var(cfg_file, "backup-media-type")) == 0) {711 if ((value = read_cfg_var(cfg_file, "backup-media-type")) != NULL) { 712 712 if (!strcmp(value, "cdstream")) { 713 713 bkpinfo->backup_media_type = cdstream;
Note:
See TracChangeset
for help on using the changeset viewer.