fs: stop fixing EPERM on Windows
Originally, when rimraf
faced an EPERM
on Windows, it would try to
change the file permissions of the entry and attempt to remove it
again. However, rm -rf
doesn't change any file permissions, so rimraf
shouldn't either.
This change also updates test/common/tmpdir.js
to repeatedly try
changing the file permissions of its contents to 0o777
when an EACCES
or
an EPERM
is faced while attempting to remove them.
Signed-off-by: Darshan Sen raisinten@gmail.com