Pārlūkot izejas kodu

Fix the empty dir bug

master
lostd lostd pirms 10 gadiem
vecāks
revīzija
4384f09726
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      noice.c

+ 4
- 0
noice.c Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt