Archived
1
0
Fork 0

fscrawl.c: moved errno reset and don't call perror on EACCES.

This commit is contained in:
Henrik Hautakoski 2010-11-20 08:29:37 +01:00
parent 63b4beb8b0
commit c1963d1397

View file

@ -152,8 +152,8 @@ fs_entry* fsc_read(fscrawl_t f) {
if (f->ent.dir) if (f->ent.dir)
mvdown(f, f->ent.name); mvdown(f, f->ent.name);
errno = 0;
for(;;) { for(;;) {
ent = readdir(f->dirs[f->depth]); ent = readdir(f->dirs[f->depth]);
if (ent) { if (ent) {
@ -163,8 +163,8 @@ fs_entry* fsc_read(fscrawl_t f) {
} }
if (errno) { if (errno) {
if (errno != EACCES)
perror("fsc_read"); perror("fsc_read");
errno = 0;
continue; continue;
} }