Changeset 2934 in MondoRescue
- Timestamp:
- Jan 25, 2012, 12:46:02 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/common/libmondo-devices.c
r2933 r2934 2063 2063 char *tmp = NULL; 2064 2064 char *tmp1 = NULL; 2065 char *tmp2 = NULL; 2065 2066 2066 2067 if (pathlist == NULL) { … … 2119 2120 /* Adds a | to ensure correct detection even at both ends */ 2120 2121 mr_asprintf(&tmp1,"|%s",token); 2122 mr_asprintf(&tmp2,"|%s|",token); 2121 2123 if (mode == 'E') { 2122 2124 /* Add the token if not already in the list */ 2123 2125 mr_asprintf(&tmp,"|%s|",bkpinfo->exclude_paths); 2124 if (strstr(tmp,tmp 1) == NULL) {2126 if (strstr(tmp,tmp2) == NULL) { 2125 2127 if (bkpinfo->exclude_paths) { 2126 2128 mr_strcat(bkpinfo->exclude_paths,tmp1); … … 2133 2135 /* Add the token if not already in the list */ 2134 2136 mr_asprintf(&tmp,"|%s|",bkpinfo->include_paths); 2135 if (strstr(tmp,tmp 1) == NULL) {2137 if (strstr(tmp,tmp2) == NULL) { 2136 2138 strcat(bkpinfo->include_paths,tmp1); 2137 2139 } … … 2139 2141 } 2140 2142 mr_free(tmp); 2143 mr_free(tmp2); 2141 2144 break; 2142 2145 }
Note:
See TracChangeset
for help on using the changeset viewer.