kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
MIT License
236 stars 69 forks source link

Could not find file to scan #34

Closed ritika-innani closed 3 years ago

ritika-innani commented 5 years ago

Trying to upload a file with space in the file name, it's throwing this error 'Could not find file to scan!' After investigation, found that it is replacing the spaces with '\ ' After that it is failing at fs_access function.

kylefarris commented 5 years ago

Replacing spaces with \ is standard Unix procedure but looking at the code, it looks like we're double-up on the back-slashes which would not be what we want. When you say "after that, it is failing at fs_access function", what do you mean? What is it saying? What's the error message?