Changeset 2697 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-cli.c
- Timestamp:
- Jan 25, 2011, 10:44:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-cli.c
r2694 r2697 612 612 log_to_screen("Please supply a sensible value with '-E'\n"); 613 613 } 614 if (bkpinfo->exclude_paths[0]) { 615 strcat(bkpinfo->exclude_paths, " "); 616 } 614 mr_strcat(bkpinfo->exclude_paths, " "); 617 615 mr_asprintf(&tmp1, "%s", flag_val['E']); 618 616 … … 658 656 { 659 657 mr_asprintf(&psz, "%s", list_of_NETFS_mounts_only()); 660 if (bkpinfo->exclude_paths[0]) { 661 strncat(bkpinfo->exclude_paths, " ", 4*MAX_STR_LEN); 662 } 663 strncat(bkpinfo->exclude_paths, psz, 4*MAX_STR_LEN); 658 mr_strcat(bkpinfo->exclude_paths, "%s ", psz); 664 659 mr_free(psz); 665 660 666 log_msg(3, "-N means we're now excluding %s", 667 bkpinfo->exclude_paths); 668 } 669 670 if (strlen(bkpinfo->exclude_paths) >= 4*MAX_STR_LEN) { 671 fatal_error 672 ("Your '-E' parameter is too long. Increase MAX_STR_LEN"); 661 if (bkpinfo->exclude_paths != NULL) { 662 log_msg(3, "-N means we're now excluding %s", bkpinfo->exclude_paths); 663 } 673 664 } 674 665
Note:
See TracChangeset
for help on using the changeset viewer.