Changeset 2190 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-cli.c
- Timestamp:
- May 5, 2009, 3:56:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-cli.c
r2134 r2190 395 395 "fdisk -l %s 2>/dev/null|grep -E \"^/dev/\"|awk '{printf(\"%%s \", $1)}END{print \"\"}'", dsf); 396 396 log_msg(4, "Executing: %s", command); 397 asprintf(&partition_list, call_program_and_get_last_line_of_output(command));397 asprintf(&partition_list, "%s", call_program_and_get_last_line_of_output(command)); 398 398 paranoid_free(command); 399 399 log_msg(4, "Partition list for %s: %s", dsf, partition_list); … … 498 498 VG, VG); 499 499 log_msg(4, " Running: %s", command); 500 asprintf(&mount_list, call_program_and_get_last_line_of_output(command));500 asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command)); 501 501 paranoid_free(command); 502 502 log_msg(4, " VG %s mount_list: %s", VG, mount_list); … … 519 519 "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'"); 520 520 log_msg (5, "Running: %s", command); 521 asprintf(&mount_list, call_program_and_get_last_line_of_output(command));521 asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command)); 522 522 paranoid_free(command); 523 523 log_msg(4, " Software raid device list: %s", mount_list); … … 571 571 "cat /proc/mdstat|grep -iv Personal|awk '{if($0~\"^.*[ ]+:\"){printf(\"/dev/%s \", $1)}}END{print \"\"}'"); 572 572 log_msg (5, " Running: %s", command); 573 asprintf(&mount_list, call_program_and_get_last_line_of_output(command));573 asprintf(&mount_list, "%s", call_program_and_get_last_line_of_output(command)); 574 574 paranoid_free(command); 575 575 log_msg(4, " Software raid device list: %s", mount_list); … … 756 756 } 757 757 758 asprintf(&tmp1, flag_val['I']);758 asprintf(&tmp1, "%s", flag_val['I']); 759 759 p = tmp1; 760 760 q = tmp1; … … 1055 1055 strcat(bkpinfo->exclude_paths, " "); 1056 1056 } 1057 asprintf(&tmp1, flag_val['E']);1057 asprintf(&tmp1, "%s", flag_val['E']); 1058 1058 1059 1059 p = tmp1;
Note:
See TracChangeset
for help on using the changeset viewer.