... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Aug 17 13:10:00 CEST 2010 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * sigtool/sigtool.c: fix EOL matching in --find-sigs (bb#2164) |
|
4 |
+ |
|
1 | 5 |
Sat Aug 14 16:29:32 EEST 2010 (edwin) |
2 | 6 |
------------------------------------- |
3 | 7 |
* libclamav/c++/llvm/test: XFAIL a test that fails on i686-apple-darwin8 (bb #2206). |
... | ... |
@@ -1276,8 +1276,9 @@ static int listdb(const char *filename, const regex_t *regex) |
1276 | 1276 |
|
1277 | 1277 |
while(fgets(buffer, FILEBUFF, fh)) { |
1278 | 1278 |
if(regex) { |
1279 |
+ cli_chomp(buffer); |
|
1279 | 1280 |
if(!cli_regexec(regex, buffer, 0, NULL, 0)) |
1280 |
- mprintf("%s", buffer); |
|
1281 |
+ mprintf("%s\n", buffer); |
|
1281 | 1282 |
continue; |
1282 | 1283 |
} |
1283 | 1284 |
line++; |
... | ... |
@@ -1301,13 +1302,13 @@ static int listdb(const char *filename, const regex_t *regex) |
1301 | 1301 |
} else if(cli_strbcasestr(filename, ".hdb") || cli_strbcasestr(filename, ".hdu") || cli_strbcasestr(filename, ".mdb") || cli_strbcasestr(filename, ".mdu")) { /* hash database */ |
1302 | 1302 |
|
1303 | 1303 |
while(fgets(buffer, FILEBUFF, fh)) { |
1304 |
+ cli_chomp(buffer); |
|
1304 | 1305 |
if(regex) { |
1305 | 1306 |
if(!cli_regexec(regex, buffer, 0, NULL, 0)) |
1306 |
- mprintf("%s", buffer); |
|
1307 |
+ mprintf("%s\n", buffer); |
|
1307 | 1308 |
continue; |
1308 | 1309 |
} |
1309 | 1310 |
line++; |
1310 |
- cli_chomp(buffer); |
|
1311 | 1311 |
start = cli_strtok(buffer, 2, ":"); |
1312 | 1312 |
|
1313 | 1313 |
if(!start) { |
... | ... |
@@ -1327,13 +1328,13 @@ static int listdb(const char *filename, const regex_t *regex) |
1327 | 1327 |
} else if(cli_strbcasestr(filename, ".ndb") || cli_strbcasestr(filename, ".ndu") || cli_strbcasestr(filename, ".ldb") || cli_strbcasestr(filename, ".ldu") || cli_strbcasestr(filename, ".sdb") || cli_strbcasestr(filename, ".zmd") || cli_strbcasestr(filename, ".rmd")) { |
1328 | 1328 |
|
1329 | 1329 |
while(fgets(buffer, FILEBUFF, fh)) { |
1330 |
+ cli_chomp(buffer); |
|
1330 | 1331 |
if(regex) { |
1331 | 1332 |
if(!cli_regexec(regex, buffer, 0, NULL, 0)) |
1332 |
- mprintf("%s", buffer); |
|
1333 |
+ mprintf("%s\n", buffer); |
|
1333 | 1334 |
continue; |
1334 | 1335 |
} |
1335 | 1336 |
line++; |
1336 |
- cli_chomp(buffer); |
|
1337 | 1337 |
|
1338 | 1338 |
if(cli_strbcasestr(filename, ".ldb") || cli_strbcasestr(filename, ".ldu")) |
1339 | 1339 |
start = cli_strtok(buffer, 0, ";"); |