Browse code

bb#1456

git-svn: trunk@4925

aCaB authored on 2009/03/12 03:04:01
Showing 6 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Mar 11 19:02:27 CET 2009 (acab)
2
+-----------------------------------
3
+ * libclamav: downgrade (bb#1456)
4
+
1 5
 Tue Mar 10 20:53:28 EET 2009 (edwin)
2 6
 ------------------------------------
3 7
  * unit_tests/check_regex.c: add more ifdefs for old check version.
... ...
@@ -194,7 +194,7 @@ cli_binhex(const char *dir, int desc)
194 194
 
195 195
 	if(binhexBegin(m) == NULL) {
196 196
 		messageDestroy(m);
197
-		cli_errmsg("No binhex line found\n");
197
+		cli_dbgmsg("No binhex line found\n");
198 198
 		return CL_EFORMAT;
199 199
 	}
200 200
 
... ...
@@ -505,7 +505,7 @@ fileblobPartialSet(fileblob *fb, const char *fullname, const char *arg)
505 505
 	fb->fp = fdopen(fb->fd, "wb");
506 506
 
507 507
 	if(fb->fp == NULL) {
508
-		cli_errmsg("fileblobSetFilename: fdopen failed (%s)\n", strerror(errno));
508
+		cli_errmsg("fileblobSetFilename: fdopen failed\n");
509 509
 		close(fb->fd);
510 510
 		return;
511 511
 	}
... ...
@@ -548,7 +548,7 @@ fileblobSetFilename(fileblob *fb, const char *dir, const char *filename)
548 548
 	fb->fp = fdopen(fb->fd, "wb");
549 549
 
550 550
 	if(fb->fp == NULL) {
551
-		cli_errmsg("fileblobSetFilename: fdopen failed (%s)\n", strerror(errno));
551
+		cli_errmsg("fileblobSetFilename: fdopen failed\n");
552 552
 		close(fb->fd);
553 553
 		free(fullname);
554 554
 		return;
... ...
@@ -599,8 +599,8 @@ fileblobAddData(fileblob *fb, const unsigned char *data, size_t len)
599 599
 #endif
600 600
 
601 601
 		if(fwrite(data, len, 1, fb->fp) != 1) {
602
-			cli_errmsg("fileblobAddData: Can't write %lu bytes to temporary file %s: %s\n",
603
-				(unsigned long)len, fb->b.name, strerror(errno));
602
+			cli_errmsg("fileblobAddData: Can't write %lu bytes to temporary file %s\n",
603
+				(unsigned long)len, fb->b.name);
604 604
 			return -1;
605 605
 		}
606 606
 		fb->isNotEmpty = 1;
... ...
@@ -1054,7 +1054,7 @@ messageMoveText(message *m, text *t, message *old_message)
1054 1054
 				u = next;
1055 1055
 
1056 1056
 				if(u == NULL) {
1057
-					cli_errmsg("messageMoveText sanity check: t not within old_message\n");
1057
+					cli_dbgmsg("messageMoveText sanity check: t not within old_message\n");
1058 1058
 					return -1;
1059 1059
 				}
1060 1060
 			}
... ...
@@ -1517,7 +1517,7 @@ messageExport(message *m, const char *dir, void *(*create)(void), void (*destroy
1517 1517
 
1518 1518
 			newret = (*create)();
1519 1519
 			if(newret == NULL) {
1520
-				cli_errmsg("Not all decoding algorithms were run\n");
1520
+				cli_dbgmsg("Not all decoding algorithms were run\n");
1521 1521
 				return ret;
1522 1522
 			}
1523 1523
 			(*destroy)(ret);
... ...
@@ -1857,7 +1857,7 @@ messageToText(message *m)
1857 1857
 				}
1858 1858
 				continue;
1859 1859
 			case UUENCODE:
1860
-				cli_errmsg("messageToText: Unexpected attempt to handle uuencoded file - report to http://bugs.clamav.net\n");
1860
+				cli_warnmsg("messageToText: Unexpected attempt to handle uuencoded file - report to http://bugs.clamav.net\n");
1861 1861
 				if(first) {
1862 1862
 					if(last)
1863 1863
 						last->t_next = NULL;
... ...
@@ -420,7 +420,7 @@ static int32_t ole2_get_sbat_data_block(int fd, ole2_header_t *hdr, void *buff,
420 420
 	}
421 421
 	
422 422
 	if (hdr->sbat_root_start < 0) {
423
-		cli_errmsg("No root start block\n");
423
+		cli_dbgmsg("No root start block\n");
424 424
 		return FALSE;
425 425
 	}
426 426
 
... ...
@@ -70,7 +70,7 @@ cli_uuencode(const char *dir, int desc)
70 70
 	}
71 71
 	if(!isuuencodebegin(buffer)) {
72 72
 		fclose(fin);
73
-		cli_errmsg("Message is not in uuencoded format\n");
73
+		cli_dbgmsg("Message is not in uuencoded format\n");
74 74
 		return CL_EFORMAT;
75 75
 	}
76 76
 
... ...
@@ -85,7 +85,7 @@ cli_uuencode(const char *dir, int desc)
85 85
 	if(uudecodeFile(m, buffer, dir, fin) < 0) {
86 86
 		messageDestroy(m);
87 87
 		fclose(fin);
88
-		cli_errmsg("Message is not in uuencoded format\n");
88
+		cli_dbgmsg("Message is not in uuencoded format\n");
89 89
 		return CL_EFORMAT;
90 90
 	}
91 91
 	messageDestroy(m);