mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-18 19:55:11 -04:00
ioctl: do not reuse fi->fh for directories
for directories, it points to a structure, not an open file descriptor. Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
This commit is contained in:
parent
b0a9bdaa64
commit
20e8529c4e
3
main.c
3
main.c
@ -4600,7 +4600,8 @@ ovl_ioctl (fuse_req_t req, fuse_ino_t ino, unsigned int cmd, void *arg,
|
|||||||
{
|
{
|
||||||
case FS_IOC_GETVERSION:
|
case FS_IOC_GETVERSION:
|
||||||
case FS_IOC_GETFLAGS:
|
case FS_IOC_GETFLAGS:
|
||||||
fd = fi->fh;
|
if (! node_dirp (node))
|
||||||
|
fd = fi->fh;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FS_IOC_SETVERSION:
|
case FS_IOC_SETVERSION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user