Re: [PATCH] Fix 'git clean' failure on NFS.
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jun 18, 2010, 12:17 UTC
- Message-ID
- <4C1B63CB.7080209@viscovery.net>
- In-Reply-To
- <1276859235-13534-1-git-send-email-edwintorok@gmail.com>
Am 6/18/2010 13:07, schrieb Török Edwin:
Show 5 quoted lines
> else if (S_ISDIR(st.st_mode)) {
> - if (!remove_dir_recursively(path, only_empty))
> + if (!remove_dir_recursively(path, only_empty)) {
> + did_rm = 1;
> continue; /* happy */Is it possible that remove_dir_recursively exits with 0, but it actually did not remove the directory? That would result in an endless loop: it would have to re-enter remove_dir_recursively on the next iteration, return 0 again (without removing the directory), next iteration, etc.
-- Hannes