[bug]rm.c pwd.c getcwd.c don't work correctly in MSYS
From:
heromyth
Subject:
[bug]rm.c pwd.c getcwd.c don't work correctly in MSYS
Date:
Wed, 27 Apr 2005 16:44:50 +0800
User-agent:
Mozilla Thunderbird 1.0 (Windows/20041206)
I have compiled a copy of coreutils CVS with msysDVLPR-1.0.0-alpha of
MSYS. After I run 'rm -r *' to delete a directory with subdirectory, I
deleted everything in the directory except for itself.
When I trace into this bug, I found the reason is because of getcwd.c:
when it does with a directory which is mounted, the MATCHING_INO (d,
thisino) is always false.
I try to resolve this problem, but I have found it so hard to me. Hope
somebody can resolve it easily. Below is I have found:
The getcwd.c let Save-cwd.c can't store the location of the current
working directory in CWD via the xgetcwd (). So the 'rm -r somedir'
can't delete 'somedir' itself.