mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
ioctl: don't set outbufsz when not needed
This commit is contained in:
parent
2ca0cb0fbf
commit
b69819e4b2
4 changed files with 22 additions and 16 deletions
|
|
@ -90,7 +90,8 @@ namespace l
|
|||
case FS_IOC_SETVERSION:
|
||||
if(endian::is_big() && (sizeof(long) != sizeof(int)))
|
||||
return -ENOTTY;
|
||||
*out_bufsz_ = 4;
|
||||
if((data_ != NULL) && (*out_bufsz_ > 4))
|
||||
*out_bufsz_ = 4;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue