mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-23 04:09:56 +08:00
use long instead of int to limit possibility of overflow in switch, closes #1
This commit is contained in:
parent
97ce6f5f21
commit
243a193e66
@ -37,7 +37,7 @@
|
|||||||
static
|
static
|
||||||
int
|
int
|
||||||
_ioctl(const int fd,
|
_ioctl(const int fd,
|
||||||
const int cmd,
|
const long cmd,
|
||||||
void *arg,
|
void *arg,
|
||||||
const unsigned int flags,
|
const unsigned int flags,
|
||||||
void *data)
|
void *data)
|
||||||
@ -80,7 +80,7 @@ namespace mergerfs
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return _ioctl(fileinfo->fd,
|
return _ioctl(fileinfo->fd,
|
||||||
cmd,
|
(long)cmd,
|
||||||
arg,
|
arg,
|
||||||
flags,
|
flags,
|
||||||
data);
|
data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user