fuse directory fillers return opposite truth values from puffs_nextdent,
so invert return value to make readdir callers which check the return value work.
This commit is contained in:
parent
8721382dee
commit
dccec0f03b
@ -129,7 +129,7 @@ puffs_fuse_fill_dir(void *buf, const char *name,
|
|||||||
else
|
else
|
||||||
dtype = DT_REG;
|
dtype = DT_REG;
|
||||||
|
|
||||||
return puffs_nextdent(&deh->dent, name, fakeino++, dtype, &deh->reslen);
|
return !puffs_nextdent(&deh->dent, name, fakeino++, dtype,&deh->reslen);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -152,7 +152,7 @@ puffs_fuse_dirfil(fuse_dirh_t h, const char *name, int type, ino_t ino)
|
|||||||
else
|
else
|
||||||
dino = fakeino++;
|
dino = fakeino++;
|
||||||
|
|
||||||
return puffs_nextdent(&h->dent, name, dino, dtype, &h->reslen);
|
return !puffs_nextdent(&h->dent, name, dino, dtype, &h->reslen);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user