Fix a remove_empty_dir_recursive problem.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Christian Couder committed
Oct 1, 2006 at 14:36 UTC
28bed6ea2198f6589ad43e48666906a879839442
1 file changed
+1
-1
refs.c
+1
-1
@@ -498,7 +498,7 @@ static int remove_empty_dir_recursive(char *path, int len)
498
strcpy(path + len, e->d_name) &&
499
!lstat(path, &st) &&
500
S_ISDIR(st.st_mode) &&
501
- remove_empty_dir_recursive(path, len + namlen))
501
+ !remove_empty_dir_recursive(path, len + namlen))
502
continue; /* happy */
503
504
/* path too long, stat fails, or non-directory still exists */