git-svn: trunk@2536
Tomasz Kojm authored on 2006/12/04 22:23:08... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Dec 4 14:17:47 CET 2006 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * freshclam/manager.c: add "-exp" to UserAgent string if compiled with |
|
4 |
+ --enable-experimental, requested by Luca |
|
5 |
+ |
|
1 | 6 |
Mon Dec 4 01:16:28 CET 2006 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* libclamav/vba_extract.c: fix lseek parameter order (bb#155) |
... | ... |
@@ -331,7 +331,11 @@ static struct cl_cvd *remote_cvdhead(const char *file, const char *hostname, cha |
331 | 331 |
if(uas) |
332 | 332 |
agent = uas; |
333 | 333 |
else |
334 |
+#ifdef CL_EXPERIMENTAL |
|
335 |
+ agent = PACKAGE"/"VERSION"-exp"; |
|
336 |
+#else |
|
334 | 337 |
agent = PACKAGE"/"VERSION; |
338 |
+#endif |
|
335 | 339 |
|
336 | 340 |
snprintf(cmd, sizeof(cmd), |
337 | 341 |
"GET %s/%s HTTP/1.1\r\n" |
... | ... |
@@ -470,7 +474,11 @@ static int getfile(const char *srcfile, const char *destfile, const char *hostna |
470 | 470 |
if(uas) |
471 | 471 |
agent = uas; |
472 | 472 |
else |
473 |
+#ifdef CL_EXPERIMENTAL |
|
474 |
+ agent = PACKAGE"/"VERSION"-exp"; |
|
475 |
+#else |
|
473 | 476 |
agent = PACKAGE"/"VERSION; |
477 |
+#endif |
|
474 | 478 |
|
475 | 479 |
snprintf(cmd, sizeof(cmd), |
476 | 480 |
"GET %s/%s HTTP/1.1\r\n" |