Ignore:
Timestamp:
Dec 6, 2013, 3:40:47 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix mondoarchive which now works in text mode. GUI mode still not working and crashing on first update for backup. Needs more

investigation in newt-specific.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-devices.c

    r3196 r3205  
    25612561        }
    25622562        if (bkpinfo->netfs_remote_dir == NULL) {
    2563             fatal_error("bkpinfo->netfs_remote_dir shold not be NULL");
     2563            fatal_error("bkpinfo->netfs_remote_dir should not be NULL");
    25642564        }
    25652565        strcpy(tmp1, bkpinfo->netfs_remote_dir);
     
    25842584        }
    25852585        log_msg(3, "prefix set to %s", bkpinfo->prefix);
    2586 
    25872586        log_msg(3, "Just set netfs_remote_dir to %s", bkpinfo->netfs_remote_dir);
    25882587        log_msg(3, "isodir is still %s", bkpinfo->isodir);
     
    26882687        bkpinfo->boot_loader = i;
    26892688
    2690         mr_free(bkpinfo->include_paths);
    2691         strcpy(tmp1, "/");
     2689        if (bkpinfo->include_paths) {
     2690            strcpy(tmp1, bkpinfo->include_paths);
     2691            mr_free(bkpinfo->include_paths);
     2692        } else {
     2693            strcpy(tmp1, "/");
     2694        }
    26922695        if (!popup_and_get_string
    26932696            ("Backup paths",
     
    28312834    log_it("compression = %ld", bkpinfo->compression_level);
    28322835    log_it("exclude_path = %s", bkpinfo->exclude_paths);
    2833     log_it("include_path = %s", bkpinfo->include_paths);
     2836    if (bkpinfo->include_paths) {
     2837        log_it("include_path = %s", bkpinfo->include_paths);
     2838    }
    28342839
    28352840    /* Handle devices passed in bkpinfo and print result */
     
    30103015 * The mountpoint (where it's mounted) will obviously be '/'.
    30113016 */
    3012 char *where_is_root_mounted()
    3013 {
    3014     /*@ buffers **************** */
    3015     static char tmp[MAX_STR_LEN];
     3017char *where_is_root_mounted() {
     3018
     3019/*@ buffers **************** */
     3020static char tmp[MAX_STR_LEN];
    30163021
    30173022
    30183023#ifdef __FreeBSD__
    3019     strcpy(tmp, call_program_and_get_last_line_of_output
    3020            ("mount | grep \" on / \" | cut -d' ' -f1"));
     3024    strcpy(tmp, call_program_and_get_last_line_of_output("mount | grep \" on / \" | cut -d' ' -f1"));
    30213025#else
    3022     strcpy(tmp, call_program_and_get_last_line_of_output
    3023            ("mount | grep \" on / \" | cut -d' ' -f1 | sed s/[0-9]// | sed s/[0-9]//"));
     3026    strcpy(tmp, call_program_and_get_last_line_of_output("mount | grep \" on / \" | cut -d' ' -f1 | sed s/[0-9]// | sed s/[0-9]//"));
    30243027    if (strstr(tmp, "/dev/cciss/")) {
    3025         strcpy(tmp, call_program_and_get_last_line_of_output
    3026                ("mount | grep \" on / \" | cut -d' ' -f1 | cut -dp -f1"));
     3028        strcpy(tmp, call_program_and_get_last_line_of_output("mount | grep \" on / \" | cut -d' ' -f1 | cut -dp -f1"));
    30273029    }
    30283030    if (strstr(tmp, "/dev/md")) {
    3029         strcpy(tmp,
    3030                call_program_and_get_last_line_of_output
    3031                ("mount | grep \" on / \" | cut -d' ' -f1"));
    3032     }
    3033 #endif
    3034 
    3035     return (tmp);
     3031        strcpy(tmp, call_program_and_get_last_line_of_output("mount | grep \" on / \" | cut -d' ' -f1"));
     3032    }
     3033#endif
     3034
     3035return (tmp);
    30363036}
    30373037
Note: See TracChangeset for help on using the changeset viewer.