From 5a35e13dc1ccc2ba97eb3a7d3b156866f1605492 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 28 May 2024 23:13:14 +0000 Subject: driver: internals: always allocate dirbuff, used in tpax_queue_item_full_path(). --- src/driver/tpax_driver_ctx.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/driver') diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c index 8ab684d..6ed71ab 100644 --- a/src/driver/tpax_driver_ctx.c +++ b/src/driver/tpax_driver_ctx.c @@ -301,12 +301,11 @@ static struct tpax_driver_ctx_impl * tpax_driver_ctx_alloc( return 0; } - if (cctx->drvflags & TPAX_DRIVER_DIR_MEMBER_RECURSE) - ictx->ctx.dirbuff = mmap( - 0,TPAX_DIRENT_BUFLEN, - PROT_READ|PROT_WRITE, - MAP_PRIVATE|MAP_ANONYMOUS, - -1,0); + ictx->ctx.dirbuff = mmap( + 0,TPAX_DIRENT_BUFLEN, + PROT_READ|PROT_WRITE, + MAP_PRIVATE|MAP_ANONYMOUS, + -1,0); if (ictx->ctx.dirbuff == MAP_FAILED) { munmap(ictx->ctx.bufaddr,ictx->ctx.bufsize); -- cgit v1.2.3