line |
true |
false |
branch |
21
|
1 |
7 |
unless ($conf->{'socket_name'}) |
25
|
0 |
7 |
if (exists $conf->{'zip_fallback'}) |
26
|
0 |
0 |
unless (&blessed($conf->{'zip_fallback'}) and $conf->{'zip_fallback'}->isa("File::VirusScan::Engine::Daemon")) |
47
|
1 |
0 |
unless (defined $sock) |
59
|
0 |
0 |
if ($abs and $abs ne $path) |
64
|
0 |
0 |
if ($@) |
70
|
0 |
0 |
unless ($s->can_write($self->{'ping_timeout'})) |
75
|
0 |
0 |
unless ($sock->print("nIDSESSION\nnPING\n")) |
80
|
0 |
0 |
unless ($sock->flush) |
85
|
0 |
0 |
unless ($s->can_read($self->{'ping_timeout'})) |
91
|
0 |
0 |
unless ($sock->sysread($ping_response, 256)) |
96
|
0 |
0 |
if (not defined $ping_response or $ping_response ne "1: PONG\n") |
101
|
0 |
0 |
unless ($s->can_write($self->{'write_timeout'})) |
106
|
0 |
0 |
unless ($sock->print("nSCAN $path\n")) |
111
|
0 |
0 |
unless ($sock->flush) |
116
|
0 |
0 |
unless ($s->can_read($self->{'read_timeout'})) |
126
|
0 |
0 |
unless ($sock->sysread($scan_response, 256)) |
134
|
0 |
0 |
unless ($rc) |
139
|
0 |
0 |
unless ($id) |
144
|
0 |
0 |
if ($status =~ /(.+) FOUND/) { } |
|
0 |
0 |
elsif ($scan_response =~ /(.+) ERROR/) { } |
155
|
0 |
0 |
if ($self->{'zip_fallback'} and $err_detail =~ /(?:zip module failure|not supported data format)/i) |