author | Alex Riesen <raa.lkml@gmail.com> | |
Fri, 1 Apr 2011 08:29:16 +0000 (10:29 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 1 Apr 2011 18:16:21 +0000 (11:16 -0700) | ||
commit | 0235017eafa8dfc3a7353b7091ad5109d0beb7a5 | |
tree | f62dcba6b55c4043600bbd0620b91e54c885b129 | tree | snapshot |
parent | 2352570bf43368f3d3931f7b24bb7fd44e68eef3 | commit | diff |
clean: unreadable directory may still be rmdir-able if it is empty
As a last ditch effort, try rmdir(2) when we cannot read the directory
to be removed. It may be an empty directory that we can remove without
any permission, as long as we can modify its parent directory.
Noticed by Linus.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
As a last ditch effort, try rmdir(2) when we cannot read the directory
to be removed. It may be an empty directory that we can remove without
any permission, as long as we can modify its parent directory.
Noticed by Linus.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c | diff | blob | history | |
t/t7300-clean.sh | diff | blob | history |