]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix FUSE_CREATE with file handles and fuse protocol < 7.9
authorAlan Somers <asomers@FreeBSD.org>
Thu, 28 Apr 2022 21:13:09 +0000 (15:13 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 28 Apr 2022 21:13:09 +0000 (15:13 -0600)
commit45825a12f9851213e627cf41398706bacb793f83
treeb3f4b8424899a6a6d1a69585bf887dc51c8619d3
parent1a50bf77af90e0ee7a80f268b2c0bf2a44e38ef2
fusefs: fix FUSE_CREATE with file handles and fuse protocol < 7.9

Prior to fuse protocol version 7.9, the fuse_entry_out structure had a
smaller size.  But fuse_vnop_create did not take that into account when
working with servers that use older protocols.  The bug does not matter
for servers which don't use file handles or open flags (the only fields
affected).

PR: 263625
Submitted by: Ali Abdallah <ali.abdallah@suse.com>
MFC after: 2 weeks
sys/fs/fuse/fuse_vnops.c
tests/sys/fs/fusefs/create.cc