Changeset 1817 in MondoRescue for branches/stable/mondo/src/mondoarchive/mondo-cli.c
- Timestamp:
- Nov 20, 2007, 3:36:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/mondoarchive/mondo-cli.c
r1770 r1817 506 506 507 507 if (flag_set['E']) { 508 if (bkpinfo->exclude_paths [0]) {509 strcat(bkpinfo->exclude_paths, " ");508 if (bkpinfo->exclude_paths != NULL) { 509 mr_strcat(bkpinfo->exclude_paths, " "); 510 510 } 511 511 mr_asprintf(&tmp1, flag_val['E']); … … 538 538 } 539 539 mr_free(tmp1); 540 541 strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths), 542 flag_val['E'], 543 4*MAX_STR_LEN - strlen(bkpinfo->exclude_paths)); 540 mr_strcat(bkpinfo->exclude_paths, flag_val['E']); 544 541 } 545 542 if (flag_set['e']) { … … 549 546 { 550 547 mr_asprintf(&psz, list_of_NFS_mounts_only()); 551 if (bkpinfo->exclude_paths [0]) {552 strncat(bkpinfo->exclude_paths, " ", 4*MAX_STR_LEN);553 } 554 strncat(bkpinfo->exclude_paths, psz, 4*MAX_STR_LEN);548 if (bkpinfo->exclude_paths != NULL) { 549 mr_strcat(bkpinfo->exclude_paths, " "); 550 } 551 mr_strcat(bkpinfo->exclude_paths, psz); 555 552 mr_free(psz); 556 553 mr_msg(3, "-N means we're now excluding %s", 557 554 bkpinfo->exclude_paths); 558 }559 if (strlen(bkpinfo->exclude_paths) >= 4*MAX_STR_LEN) {560 fatal_error561 ("Your '-E' parameter is too long. Increase MAX_STR_LEN");562 555 } 563 556 if (flag_set['b']) {
Note:
See TracChangeset
for help on using the changeset viewer.