{"thread":{"id":"5776","subject":"[PATCH 1/2] Fix a remove_empty_dir_recursive problem.","startedAt":"2006-10-01T12:36:49Z","lastAt":"2006-10-01T12:36:49Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"28062","messageId":"20061001143649.a67d243c.chriscool@tuxfamily.org","threadId":"5776","inReplyTo":null,"subject":"[PATCH 1/2] Fix a remove_empty_dir_recursive problem.","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2006-10-01T12:36:49Z","receivedAt":"2006-10-01T12:36:49Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Signed-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n refs.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/refs.c b/refs.c\nindex 858c534..221eb38 100644\n--- a/refs.c\n+++ b/refs.c\n@@ -498,7 +498,7 @@ static int remove_empty_dir_recursive(ch\n \t\t    strcpy(path + len, e->d_name) &&\n \t\t    !lstat(path, &st) &&\n \t\t    S_ISDIR(st.st_mode) &&\n-\t\t    remove_empty_dir_recursive(path, len + namlen))\n+\t\t    !remove_empty_dir_recursive(path, len + namlen))\n \t\t\tcontinue; /* happy */\n \n \t\t/* path too long, stat fails, or non-directory still exists */\n-- \n1.4.2.1.g7bc701-dirty\n"}]}