mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-28 20:18:59 +08:00
fs_openat.hpp
This commit is contained in:
parent
2221d5c4a5
commit
acf1f3df06
@ -64,10 +64,6 @@ namespace fs
|
|||||||
const int flags_,
|
const int flags_,
|
||||||
const mode_t mode_)
|
const mode_t mode_)
|
||||||
{
|
{
|
||||||
int rv;
|
return fs::openat(dirfd_,pathname_.string().c_str(),flags_,mode_);
|
||||||
|
|
||||||
rv = ::openat(dirfd_,pathname_,flags_,mode_);
|
|
||||||
|
|
||||||
return ((rv == -1) ? -errno : rv);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user