浏览代码

Fix the empty dir bug

master
lostd lostd 10 年前
父节点
当前提交
4384f09726
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      noice.c

+ 4
- 0
noice.c 查看文件

@@ -330,6 +330,10 @@ nochange:
char *ext, *bin;
pid_t pid;

/* Cannot descend in empty directories */
if (n == 0)
goto nochange;

name = dents[cur]->d_name;

switch (dents[cur]->d_type) {


正在加载...
取消
保存