git-svn: trunk@4925
aCaB authored on 2009/03/12 03:04:01... | ... |
@@ -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; |
... | ... |
@@ -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); |