Changeset 2011


Ignore:
Timestamp:
Aug 11, 2008, 2:46:00 PM (11 years ago)
Author:
bruno
Message:

Fix warnings and errors in previous libmondo-cli.c patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.7/mondo/src/common/libmondo-cli.c

    r2007 r2011  
    625625            /* It's not swap. See if we can find the mount point from the mount command. */
    626626            asprintf(&command, "mount 2>/dev/null | awk '{if((NF>0)&&($1==\"%s\")){print $3}}'", partitions[i]);
    627             sprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));
     627            asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));
    628628            paranoid_free(command);
    629629            if (strlen(tmp)) {
     
    682682                         *******/
    683683                        paranoid_free(mount_list);
    684                         asprintf(&command,
     684                        asprintf(&command, "%s",
    685685                            "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'");
    686686                        log_msg (5, "Running: %s", command);
     
    724724             ********/
    725725            log_msg (5, "It's not swap, mounted, or LVM. See if it's used in a software raid device.");
    726             asprintf(command, "mdadm --examine %s 2>/dev/null | awk '{if($1 == \"UUID\"){print $3}}'", partitions[i]);
     726            asprintf(&command, "mdadm --examine %s 2>/dev/null | awk '{if($1 == \"UUID\"){print $3}}'", partitions[i]);
    727727            log_msg(4, "  Running: %s", command);
    728728            asprintf(&tmp, "%s", call_program_and_get_last_line_of_output(command));
     
    735735            log_msg (5, "  UUID: %s", tmp);
    736736            /* Get the Software raid device list */
    737             asprintf(&command,
     737            asprintf(&command, "%s",
    738738             "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'");
    739739            log_msg (5, "  Running: %s", command);
     
    12221222                if (strlen(mounted_on_dsf)) {
    12231223                    log_to_screen("Excluding the following file systems on %s:\n", flag_val['E']);
    1224                     `log_to_screen("  %s\n", mounted_on_dsf);
     1224                    log_to_screen("  %s\n", mounted_on_dsf);
    12251225                    log_msg (5, "Adding to bkpinfo->exclude_paths due to -E option: %s", mounted_on_dsf);
    12261226                    strcat(bkpinfo->exclude_paths, mounted_on_dsf);
Note: See TracChangeset for help on using the changeset viewer.