Changeset 2319 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-cli.c
- Timestamp:
- Aug 18, 2009, 2:37:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-cli.c
r2318 r2319 759 759 if (!strcmp(bkpinfo->include_paths, "/")) { 760 760 log_msg(2, "'/' is pleonastic."); 761 bkpinfo->include_paths[0] = '\0';762 }763 if (bkpinfo->include_paths[0]) {764 strcat(bkpinfo->include_paths, " ");765 761 } 766 762 … … 801 797 log_to_screen("Archiving only the following file systems on %s:\n", token); 802 798 log_to_screen(" %s\n", mounted_on_dsf); 803 strcpy(bkpinfo->include_paths, "/"); 799 mr_asprintf(&p, "/"); 800 bkpinfo->include_paths = p; 804 801 if (strlen(not_mounted_on_dsf)) { 805 802 log_msg (5, "Adding to bkpinfo->exclude_paths due to -I option: %s", not_mounted_on_dsf); … … 811 808 /* A device special file was not passed in. Process it as a path. */ 812 809 case -1: 813 strcat(bkpinfo->include_paths, token); 814 strcat(bkpinfo->include_paths, " "); 810 mr_strcat(bkpinfo->include_paths, " %s ", token); 815 811 break; 816 812 } 817 813 mr_free(token); 818 814 } 819 log_msg(1, "include_paths is now '%s'", bkpinfo->include_paths); 815 if (bkpinfo->include_paths != NULL) { 816 log_msg(1, "include_paths is now '%s'", bkpinfo->include_paths); 817 } 820 818 if (bkpinfo->exclude_paths != NULL) { 821 819 log_msg(1, "exclude_paths is now '%s'", bkpinfo->exclude_paths); … … 838 836 } 839 837 bkpinfo->make_filelist = FALSE; 840 strcpy(bkpinfo->include_paths, flag_val['J']); 838 mr_asprintf(&p, "%s", flag_val['J']); 839 bkpinfo->include_paths = p; 841 840 } 842 841
Note:
See TracChangeset
for help on using the changeset viewer.