threads / patch / 5776

patch, 2 partsFix a remove_empty_dir_recursive problem.

Subject: [PATCH 1/2] Fix a remove_empty_dir_recursive problem.

## tl;dr

One message between Oct 1, 2006 and Oct 1, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Christian Couder· Oct 1, 2006, 12:36 UTC · lore
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 refs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to refs.c +1 −1
diff --git a/refs.c b/refs.c
index 858c534..221eb38 100644
--- a/refs.c
+++ b/refs.c
@@ -498,7 +498,7 @@ static int remove_empty_dir_recursive(ch
 		    strcpy(path + len, e->d_name) &&
 		    !lstat(path, &st) &&
 		    S_ISDIR(st.st_mode) &&
-		    remove_empty_dir_recursive(path, len + namlen))
+		    !remove_empty_dir_recursive(path, len + namlen))
 			continue; /* happy */
 
 		/* path too long, stat fails, or non-directory still exists */
-- 
1.4.2.1.g7bc701-dirty

← back to recent threads