remove_dir_recurse(): tighten condition for removing unreadable dir
commitecb2c282c0d6cdd9938ba9cf228316ebc91b397e
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 18 Jan 2014 22:48:56 +0000 (18 23:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Jan 2014 21:46:32 +0000 (21 13:46 -0800)
tree4483f19a2e45868e62fcbaf2ccfd19513baf8889
parente5c223e98b985d9faa274039aefa4391d2da25a6
remove_dir_recurse(): tighten condition for removing unreadable dir

If opendir() fails on the top-level directory, it makes sense to try
to delete it anyway--but only if the failure was due to EACCES.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c