Ver código fonte

Fix the empty dir bug

master
lostd lostd 10 anos atrás
pai
commit
4384f09726
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      noice.c

+ 4
- 0
noice.c Ver arquivo

@@ -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) {


Carregando…
Cancelar
Salvar