Török Edvin
aad69ae60f
add back visit_directory_toplev
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4659 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
5bae92695c
cli_sftw -> cli_ftw, and hide old cli_ftw
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4658 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
66b47dd3ba
cli_ftw/cli_sftw cleanup
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4657 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
35c526fe49
visit_directory_begin/end
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4656 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
3de54fe471
WIP switch to new multiscan code.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4655 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
b59eb33a01
on streaming, don't bind to a specific ip
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4654 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
7a95bd5795
tell accept to quit before we start waiting for threads to quit.
...
Show a verbose message that we are waiting for threads to quit.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4649 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
b120dc19de
attempt to scan a pipe
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4648 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
f3b50b8761
complain when we don't receive a file
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4647 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
2b68c49038
fix scandash spam
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4646 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
f12488af2b
fix recvln
...
uniform spam
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4645 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e66fd86ac0
fix FILDES
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4644 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ada9248441
fix poll_fd
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4643 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
e9896728c9
fix localsocket
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4642 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
2c67cb719b
scanning dash is now always sported, no need to double check
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4641 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
07e8bf35e0
handle "-" on non af_unix
...
handle "-" without fdpass
handle STREAM on af_unix
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4640 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
14ccb41923
fix replies to honor zCMDs
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4639 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
00f0516675
recv fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4638 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
55b358f614
fix CL_ENGINE_DB_TIME, time_t may well be 64-bits, so
...
writing only 32-bits will leave upper 32-bits undefined and lead to funny
results, such as VERSION command working first time, but 2nd time not showing
the DB timestamp.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4636 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
58b5cb19a6
fix poll, we add a new fd so we need to iterate on old nfds.
...
Various other work on recursion, unified scan, etc.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4635 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
a659e39384
restored non-scan commands
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4634 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
056198f16d
shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4632 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
07e8d00f49
now handling recursion for remote/fdpass scanning
...
still lots of fixmes
todo: iSESSION
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4631 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
59c2353664
shared/optparser.c: improve cmdline args handling
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4627 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
87066fbc5b
implement internal recursion, to be used when streaming or fdpassing
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4626 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
dc3a1def55
acceptloop/recvloop as in bb #1339
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4624 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
cb95779e9c
remove fd from poll list, before closing it, handle EBADF in select.
...
If select/poll fails for reason other than EINTR, make that error fatal.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4623 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
78e8d83a07
recvln
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4621 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
abd6d2c7cb
unified opts
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4620 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
bfde2577ee
typo -> segfault -> fix
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4619 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
eeeff8665a
blah
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4617 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
01925d6506
give "proper" status line
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4616 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
d100458f04
if FD got reused, clear stale buffered data for old FD
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4615 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4a588824db
fix build
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4614 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ce970052f4
push temporary work
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4613 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
1b9fa47d33
poll set management and poll logic
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4612 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
03f214fb72
sgetz - fix logic
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4611 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
4793a83546
sgetz fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4610 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
3ec259a602
preliminary zCMD sport
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4609 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
2599ba97e0
use zSCAN
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4608 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
3cf9fec2b0
add missing state
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4607 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
efe3d1250b
finish traversal logic
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4606 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
03aefc7c37
fix build errors
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4605 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
2f6b761c7a
cli_ftw draft
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4604 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
89028fc309
drop some unused code
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4603 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
218296c255
fix STREAM
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4602 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
6eea8d4f3a
fix progexit handling. Now clamd should be able to handle most commands.
...
Except SESSION is probably broken now
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4601 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4f5a740806
fix accept logic
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4600 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0dc9d54110
implement common accept+recv loop
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4599 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
d2417fbf93
recvloop. This doesn't compile yet.
...
But perhaps it is more portable to use a single select for accept/recv, then
do accept on listen sockets, and recv on open sockets.
This should be more portable than select on a pipe.
We can also do the operation with one mutex less.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4598 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago