mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 17:36:25 -05:00
Add extra checks in for file handle lookup
This commit is contained in:
parent
099ce2d91d
commit
1d1bcd3b87
3 changed files with 7 additions and 0 deletions
|
|
@ -55,6 +55,9 @@ FUSE::ftruncate(const fuse_req_ctx_t *ctx_,
|
|||
});
|
||||
}
|
||||
|
||||
if(fh == 0)
|
||||
return -ENOENT;
|
||||
|
||||
FileInfo *fi = FileInfo::from_fh(fh);
|
||||
|
||||
return ::_ftruncate(fi->fd,size_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue