Explorar el Código

Fix the empty dir bug

master
lostd lostd hace 10 años
padre
commit
4384f09726
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      noice.c

+ 4
- 0
noice.c Ver fichero

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


Cargando…
Cancelar
Guardar