Changeset 1194 in MondoRescue
- Timestamp:
- Feb 20, 2007, 12:38:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-files.c
r1186 r1194 1216 1216 char *tmp = NULL; 1217 1217 char *p = NULL; 1218 1219 malloc_string(do_not_compress_these); 1218 char *q = NULL; 1219 1220 q = strrchr(filename, '.'); 1221 if (q == NULL) { 1222 return (FALSE); 1223 } 1224 1220 1225 mr_asprintf(&tmp, "%s/do-not-compress-these", g_mondo_home); 1221 1226 if (!does_file_exist(tmp)) { … … 1223 1228 return (FALSE); 1224 1229 } 1230 malloc_string(do_not_compress_these); 1225 1231 /* BERLIOS: This is just plain WRONG !! */ 1226 1232 strcpy(do_not_compress_these,last_line_of_file(tmp)); … … 1232 1238 *(strchr(tmp, ' ')) = '\0'; 1233 1239 } 1234 if (!strcmp( strrchr(filename, '.'), tmp)) {1240 if (!strcmp(q, tmp)) { 1235 1241 mr_free(do_not_compress_these); 1236 1242 mr_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.