Changeset 2683 in MondoRescue for branches/2.2.9/mondo
- Timestamp:
- Sep 14, 2010, 2:20:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2682 r2683 2089 2089 /* A device special file was not passed in. Process it as a path. */ 2090 2090 case -1: 2091 /* we need to add a space after token to be sure our strstr test works correctly */2092 mr_asprintf(&tmp1," %s ",token);2091 /* we need to add a space efore and after token to be sure our strstr test works correctly */ 2092 mr_asprintf(&tmp1," %s ",token); 2093 2093 if (mode == 'E') { 2094 2094 /* Add the token if not already in the list */ 2095 mr_asprintf(&tmp," %s ",bkpinfo->exclude_paths);2095 mr_asprintf(&tmp," %s ",bkpinfo->exclude_paths); 2096 2096 if (strstr(tmp,tmp1) == NULL) { 2097 strcat(bkpinfo->exclude_paths, " ");2098 2097 strcat(bkpinfo->exclude_paths, tmp1); 2099 2098 } 2100 2099 } else { 2101 2100 /* Add the token if not already in the list */ 2102 mr_asprintf(&tmp," %s ",bkpinfo->include_paths);2101 mr_asprintf(&tmp," %s ",bkpinfo->include_paths); 2103 2102 if (strstr(tmp,tmp1) == NULL) { 2104 strcat(bkpinfo->include_paths, " ");2105 2103 strcat(bkpinfo->include_paths, tmp1); 2106 2104 }
Note:
See TracChangeset
for help on using the changeset viewer.