attempt to scan a pipe

git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4648 77e5149b-7576-45b1-b177-96237e5ba77b
0.95
aCaB 17 years ago
parent f3b50b8761
commit b120dc19de
  1. 3
      clamdscan/client.c

@ -567,6 +567,9 @@ int client(const struct optstruct *opts, int *infected)
if(scandash) {
int sockd, ret;
struct stat sb;
fstat(0, &sb);
if((sb.st_mode & S_IFMT) != S_IFREG) scantype = STREAM;
if((sockd = dconnect()) >= 0 && (ret = dsresult(sockd, scantype, NULL)) >= 0)
*infected = ret;
else

Loading…
Cancel
Save