gwillem / magento-malware-scanner

Scanner, signatures and the largest collection of Magento malware
GNU General Public License v3.0
679 stars 154 forks source link

Error: invalid argument on Windows WSL #146

Closed marcoaubr closed 6 years ago

marcoaubr commented 6 years ago

Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

@:~$ sudo mwscan /var/www/public
Traceback (most recent call last):
  File "/usr/local/bin/mwscan", line 9, in <module>
    load_entry_point('mwscan==20170601.141726', 'console_scripts', 'mwscan')()
  File "/usr/local/lib/python2.7/dist-packages/mwscan/scan.py", line 218, in main
    mylife.ionice(psutil.IOPRIO_CLASS_IDLE)
  File "/usr/local/lib/python2.7/dist-packages/psutil/__init__.py", line 820, in ionice
    return self._proc.ionice_set(ioclass, value)
  File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 1365, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 1830, in ionice_set
    return cext.proc_ioprio_set(self.pid, ioclass, value)
OSError: [Errno 22] Invalid argument
gwillem commented 6 years ago

Could you try #148 and let me know if it works?