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.
13 years ago
Tomasz Kojm
bb08962d85
fix previous commit
15 years ago
Török Edvin
92740b7383
Fix unit tests when run as root (bb #1635 ).
16 years ago
Török Edvin
e9e0833f5c
fix some warning
...
git-svn: trunk@5050
16 years ago
Török Edvin
47d403f899
Fix clamd INSTREAM handling inside IDSESSION (bb #1564 ).
...
git-svn: trunk@5049
16 years ago
Török Edvin
3e552ab69b
fix warning
...
git-svn: trunk@4965
16 years ago
Török Edvin
9e81ab6f70
put back ifndef C_BSD in unit test
...
git-svn: trunk@4950
16 years ago
Török Edvin
e4565ad5df
have to set conn queue length in test.
...
git-svn: trunk@4949
16 years ago
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
16 years ago
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
16 years ago
Török Edvin
39b84970e1
new clamd command: nVERSIONCOMMANDS (bb #1437 ).
...
git-svn: trunk@4922
16 years ago
Török Edvin
b0e57898e8
fix FILDES and make check on NetBSD. (bb #1411 ).
...
git-svn: trunk@4905
16 years ago
Török Edvin
47b8b6c257
Fix make check when run as root. (bb #1431 ).
...
git-svn: trunk@4879
16 years ago
Török Edvin
7bb82e6cec
fix build with old versions of check
...
git-svn: trunk@4863
16 years ago
Török Edvin
73ba72eb7d
Fix timeout/run-out-of-fd bug in unit-tests (bb #1412 )
...
git-svn: trunk@4841
17 years ago
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
17 years ago
Török Edvin
770701eb44
disable test on BSD
...
git-svn: trunk@4817
17 years ago
Török Edvin
904c4258c6
add missing header
...
git-svn: trunk@4814
17 years ago
Török Edvin
1d60f70d03
git-* commands are gone, use 'git svn'.
...
correct include position for fdpassing.h
git-svn: trunk@4813
17 years ago
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
17 years ago
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
17 years ago
Török Edvin
b337768f27
another warning
...
git-svn: trunk@4809
17 years ago
Török Edvin
c5355aedbd
make sending ancillary data at wrong time a protocol error.
...
change testcase accordingly.
git-svn: trunk@4805
17 years ago
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
17 years ago
Török Edvin
456e31a3cb
fix typo.
...
add another stress test.
Don't leak file descriptors.
Fix IDSESSION delimiter handling.
git-svn: trunk@4800
17 years ago
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
17 years ago
Török Edvin
ec86878226
test for FILDES
...
git-svn: trunk@4797
17 years ago
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
17 years ago
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
17 years ago
Török Edvin
8cad8e8323
fix distcheck errors
...
git-svn: trunk@4764
17 years ago
Török Edvin
05a213b850
add another missing file
...
git-svn: trunk@4763
17 years ago
Török Edvin
004f8386ce
output "stream" instead of "fd[]" for INSTREAM.
...
Add INSTREAM command test.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4753 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
d66eff0ace
initial version of clamd proto tests
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4752 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago