Commit graph

36 commits

Author SHA1 Message Date
Steven Morgan
479ffafe21 bb11349 - patch from Michael Pelletier to fix compilation on HP-UX 11.11. 2016-10-10 16:50:38 -04:00
Mickey Sola
46a35abe56 mass update of copyright headers 2015-09-17 13:41:26 -04:00
Shawn Webb
d9b6b8c757 bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX 2013-09-25 16:23:10 -04:00
Shawn Webb
138b5aba59 bb6082 - Fix compiler warnings 2013-02-28 14:39:19 -05:00
David Raynor
9b1af69ed0 clamd: expect ALLMATCHSCAN in unit test 2012-11-28 16:25:54 -05:00
Shawn webb
a2a004df25 BB#3737 - Value too large for specified data type
Create compile-time preprocessor defines for switching from calling
stat() to stat64(). Add --enable-stat64 switch in configure script.
2012-07-16 15:36:49 -04:00
Tomasz Kojm
bb08962d85 fix previous commit 2010-11-03 14:30:52 +01:00
Török Edvin
92740b7383 Fix unit tests when run as root (bb #1635). 2009-07-15 16:25:27 +03:00
Török Edvin
e9e0833f5c fix some warning
git-svn: trunk@5050
2009-04-20 14:26:53 +00:00
Török Edvin
47d403f899 Fix clamd INSTREAM handling inside IDSESSION (bb #1564).
git-svn: trunk@5049
2009-04-20 14:26:48 +00:00
Török Edvin
3e552ab69b fix warning
git-svn: trunk@4965
2009-03-20 18:10:40 +00:00
Török Edvin
9e81ab6f70 put back ifndef C_BSD in unit test
git-svn: trunk@4950
2009-03-14 20:45:36 +00:00
Török Edvin
e4565ad5df have to set conn queue length in test.
git-svn: trunk@4949
2009-03-14 19:23:04 +00:00
Török Edvin
7ff6ec039c better fix for bb #1446, try not to get confused by half-shut sockets (bb #1441).
git-svn: trunk@4947
2009-03-14 15:03:15 +00:00
Török Edvin
e68d70e7e0 strerror/strerror_r->cli_strerror which is always thread safe.
git-svn: trunk@4927
2009-03-11 19:11:09 +00:00
Török Edvin
39b84970e1 new clamd command: nVERSIONCOMMANDS (bb #1437).
git-svn: trunk@4922
2009-03-10 17:51:06 +00:00
Török Edvin
b0e57898e8 fix FILDES and make check on NetBSD. (bb #1411).
git-svn: trunk@4905
2009-03-06 15:19:59 +00:00
Török Edvin
47b8b6c257 Fix make check when run as root. (bb #1431).
git-svn: trunk@4879
2009-03-01 10:40:00 +00:00
Török Edvin
7bb82e6cec fix build with old versions of check
git-svn: trunk@4863
2009-02-25 19:28:48 +00:00
Török Edvin
73ba72eb7d Fix timeout/run-out-of-fd bug in unit-tests (bb #1412)
git-svn: trunk@4841
2009-02-20 13:22:02 +00:00
Török Edvin
4d26118b95 In single INSTREAM mode, remove FD from polled set (BB #1410)
Fix testcase, INSTREAM should say UNKNOWN COMMAND in old mode and close conn, sending
anything after it will likely result in a broken pipe.(BB #1407)

git-svn: trunk@4826
2009-02-18 18:37:57 +00:00
Török Edvin
770701eb44 disable test on BSD
git-svn: trunk@4817
2009-02-17 20:41:46 +00:00
Török Edvin
904c4258c6 add missing header
git-svn: trunk@4814
2009-02-17 19:40:22 +00:00
Török Edvin
1d60f70d03 git-* commands are gone, use 'git svn'.
correct include position for fdpassing.h

git-svn: trunk@4813
2009-02-17 19:40:17 +00:00
Török Edvin
537292a773 Reject new commands sent as new-style commands to avoid confusion.
This means that IDSESSION/INSTREAM must be sent as nIDSESSION\n or zIDSESSION\0,
ditto for INSTREAM.
Adjust testcases accordingly.
Old commands are still accepted when sent without delimiter.

git-svn: trunk@4811
2009-02-17 18:04:48 +00:00
Török Edvin
e114b109c4 fix use of uninitialized value.
add test for STREAM.
fix missing closing pragmas.

git-svn: trunk@4810
2009-02-17 17:35:31 +00:00
Török Edvin
b337768f27 another warning
git-svn: trunk@4809
2009-02-17 16:07:58 +00:00
Török Edvin
c5355aedbd make sending ancillary data at wrong time a protocol error.
change testcase accordingly.

git-svn: trunk@4805
2009-02-17 15:59:31 +00:00
Török Edvin
5f6edb222c ReadTimeout handling, and introduce CommandReadTimeout.
git-svn: trunk@4803
2009-02-17 15:59:21 +00:00
Török Edvin
456e31a3cb fix typo.
add another stress test.
Don't leak file descriptors.
Fix IDSESSION delimiter handling.

git-svn: trunk@4800
2009-02-16 21:27:22 +00:00
Török Edvin
0378a9ab77 introduce timeouts for send(), this is needed for IDSESSION to work reliably,
since a buggy client implementation may get stuck in send(), and then clamd
gets stuck in send() -> deadlock. To avoid this we need nonblocking sockets, and
(low) timeouts on send.
Add more tests for clamd protocol, including a stress test for IDSESSION.

git-svn: trunk@4798
2009-02-16 18:27:08 +00:00
Török Edvin
ec86878226 test for FILDES
git-svn: trunk@4797
2009-02-16 18:27:03 +00:00
Török Edvin
4e24a36173 add more unit tests.
Make handling of old-style commands compatible with old clamd: if they have a \n
that will delimit the command.
If multiscan of a single file encounters errors, don't reply OK too.

git-svn: trunk@4796
2009-02-16 18:26:58 +00:00
Török Edvin
6870ebe176 mdprintf was also taking %f and %l, and they have different size than int.
Make the ARGLEN get the correct vaarg types, otherwise it was popping off the
stack an item of the wrong size!

git-svn: trunk@4784
2009-02-13 16:52:15 +00:00
Török Edvin
8cad8e8323 fix distcheck errors
git-svn: trunk@4764
2009-02-12 18:25:17 +00:00
Török Edvin
05a213b850 add another missing file
git-svn: trunk@4763
2009-02-12 18:22:19 +00:00