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