Mail Archives: djgpp-workers/2002/09/02/01:55:49
> > > PROBLEM 2 - RM.EXE Operation not permitted (EPERM)
> >
> > > DJGPP_204 C:\dj204\gnu\build.gcc\gcc>rm -rf include
> > > rm: cannot remove directory `include': Operation not permitted (EPERM)
>
> I suspect that once the fist bug is fixed then the second one may also be
> fixed, but then again.....
I have now seen this bug, and I know the problem.
The cvs rm.exe changes directory into the tree, then aborts in the assert,
which doesn't change the directory back. So the NTVDM has it's current
directory in the tree, and you can't delete it. If I kill NTVDM then
I can delete the directory with no EPERM message. When I saw this
error, I could not delete the directory with Win2K's RMDIR either.
So this is a side effect of the rm aborts, but not really a separate bug
(at least not one we can fix). You can't delete a directory if there
is a process with a current working directory there. Changing directories
in DOS is dangerous (not volatile like unix).
When you see this sort of thing, kill all NTVDMs and try again.
- Raw text -