Ignore:
Timestamp:
Mar 22, 2010, 1:56:46 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3763@localhost: bruno | 2010-03-18 12:03:49 +0100

  • Fix CMDLINE variable initialization to do it after /proc is mounted
  • Fix backup-media-type handling in mondorestore (wrong test)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-tools.c

    r2510 r2607  
    10351035 * @param label What to read from the file.
    10361036 * @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
    10381038 */
    10391039char *read_cfg_var(char *config_file, char *label)
     
    10501050        log_to_screen("(read_cfg_var) Cannot find %s config file", config_file);
    10511051        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         */
    10571052    } else {
    10581053        mr_asprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", label, config_file);
     
    10601055        mr_free(command);
    10611056
     1057        log_msg(4, "Configuration item %s is %s", label, value);
    10621058        if (strlen(value) == 0) {
    10631059            return (NULL);
Note: See TracChangeset for help on using the changeset viewer.