git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Fix a remove_empty_dir_recursive problem.

From
Christian Couder <chriscool@tuxfamily.org>
Date
Oct 1, 2006, 12:36 UTC
Message-ID
<20061001143649.a67d243c.chriscool@tuxfamily.org>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 refs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
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
Message 1 of 1 in “Fix a remove_empty_dir_recursive problem.”
  1. 1/2 Fix a remove_empty_dir_recursive problem.Christian Couder, Oct 1, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.