-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path issues - Ubuntu Server 20.04 + bad support for Windows #126
Path issues - Ubuntu Server 20.04 + bad support for Windows #126
Comments
I believe I have resolved your first issue in local branch. I'm working on writing the tests for the your second issue. I'm using pure JS to get the file listing now instead of using commands ( Good catch and a great/thorough bug report. Thanks! Fix should be out shortly. |
No problem, and thanks @kylefarris! Let me know when you manage to fix it, and I'll test it on my end too. Take your time. |
Hey! So, I think I've created a fix for your issue. Please check out v2.3.0 and see if it works for ya! |
Tested 😢 Somethint went wrong Maybe it would be worth using this https://github.com/sefinek24/clamscan-linwin/commit/2b17542c0e3201353704d26274468dccbc4b7c77 solution for Windows?
|
Oh shoot... 🫠 I'm an idiot. Hang tight. |
Apologies for that. The previous commit had the relevant lines removed during clean up. File discovery now happens entirely using Node APIs. I would have caught this if I was testing on Windows. I might be able to add that to the GitHub Actions for CI--not sure how to do that yet but I can look into it. Try v2.3.1 and you should be good. |
Thanks! You're amazing - everything is working correctly now. I'm also sending you the logs:
|
Sweet! Glad we got it working :) |
I have checked it more thoroughly now, and it works very well. Thanks again. Have a nice holiday. I'm not sure if the holidays are still ongoing in your country, but all the best anyway <:
|
1
The
scanDir
function seems to be malfunctioning. It generates an incorrect/usr/bin/clamdscan
command, which looks like this (for example):As you can see, where there is a space, the clamscan module unexpectedly adds
\
, causing the path to be incorrect. I think I fixed it with this commit in my fork: https://github.com/sefinek24/clamscam-linwin/commit/8bef262898da0febabc3cc36b761e95756663e4a, but I don't remember.2
On my Windows workstation, I use a TCP connection with clamdscan. Unfortunately, there is another issue here. The clamscan module uses the
find
command to locate all files in folders. For some reason, this didn't work on Windows; the module couldn't find files in the folder. In my fork, I used this solution: https://github.com/sefinek24/clamscam-linwin/commit/2b17542c0e3201353704d26274468dccbc4b7c77Thanks
The text was updated successfully, but these errors were encountered: