git: c4fed7d86d5d - main - tarfs: add missing set of eofflag in early return, discovered on aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Aug 2025 21:51:52 UTC
The branch main has been updated by jmg: URL: https://cgit.FreeBSD.org/src/commit/?id=c4fed7d86d5d60fd722e506e3c7c4c24d9c8fc53 commit c4fed7d86d5d60fd722e506e3c7c4c24d9c8fc53 Author: John-Mark Gurney <jmg@FreeBSD.org> AuthorDate: 2025-08-29 21:49:50 +0000 Commit: John-Mark Gurney <jmg@FreeBSD.org> CommitDate: 2025-08-29 21:49:50 +0000 tarfs: add missing set of eofflag in early return, discovered on aarch64 Reviewed by: stevek Obtained from: Juniper Networks, Inc. --- sys/fs/tarfs/tarfs_vnops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/tarfs/tarfs_vnops.c b/sys/fs/tarfs/tarfs_vnops.c index acf18de5ab51..c110107bb210 100644 --- a/sys/fs/tarfs/tarfs_vnops.c +++ b/sys/fs/tarfs/tarfs_vnops.c @@ -334,6 +334,10 @@ tarfs_readdir(struct vop_readdir_args *ap) tnp, tnp->name, uio->uio_offset, uio->uio_resid); if (uio->uio_offset == TARFS_COOKIE_EOF) { + if (eofflag != NULL) { + TARFS_DPF(VNODE, "%s: Setting EOF flag\n", __func__); + *eofflag = 1; + } TARFS_DPF(VNODE, "%s: EOF\n", __func__); return (0); }