Le 05/01/2018 à 13:56, Ghislain Adnet a écrit :
> well this fail as a find /proc/virtual lead to a loop og the find process.. :(
>
> Ghislain.
>
reverting the logic from
- if (!dir_emit(ctx, ".", 1, ino, DT_DIR) < 0)
+ if (dir_emit(ctx, ".", 1, ino, DT_DIR))
- if (!dir_emit(ctx, "..", 2, ino, DT_DIR) < 0)
+ if (dir_emit(ctx, "..", 2, ino, DT_DIR))
to
if (!dir_emit(ctx, ".", 1, ino, DT_DIR))
if (!dir_emit(ctx, "..", 2, ino, DT_DIR))
and the tests works and find /proc works too
still dont know if the logic of the functions are preserved but at least it didn't find an issue and seems to have the
same behavior as before in the serveur but not in the logic as if dir_emit is false the behavior will chnage.
regards,
Ghislain.
Received on Fri Jan 5 16:27:28 2018