提交 28bed6ea 编写于 作者: C Christian Couder 提交者: Junio C Hamano

Fix a remove_empty_dir_recursive problem.

Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 2eaf2224
......@@ -498,7 +498,7 @@ static int remove_empty_dir_recursive(char *path, int len)
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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册