Fix a bug whereby a user with write access to a directory being removed
authorJim Meyering <jim@meyering.net>
Fri, 10 Mar 2006 21:47:34 +0000 (21:47 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 10 Mar 2006 21:47:34 +0000 (21:47 +0000)
commit76d20d82dd1ee35c7d2ad49fb8250ac4eecde43b
tree0e0b6840f687f41f280769baaba9e643d26510ca
parent6754d7a74f3c04205dc27ee39cc154e429dcfe19
Fix a bug whereby a user with write access to a directory being removed
could cause the removal of that directory to fail with an erroneous
diagnostic about a directory cycle.  Reported by Vineet Chadha.

(AD_pop_and_chdir): If the directory we're about to
leave (and try to rmdir) is the one whose dev_ino is being used to
detect a cycle, reset cycle_check_state.dev_ino to that of the parent.
src/remove.c