mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 23:16:27 -05:00
fs_mknod_as.hpp
This commit is contained in:
parent
6e4b618376
commit
fb534e5aba
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ namespace fs
|
|||
dev_t dev_,
|
||||
mode_t umask_)
|
||||
{
|
||||
if(not fs::acl::dir_has_defaults(path_))
|
||||
mode_ &= ~umask_;
|
||||
|
||||
const ugid::SetGuard _(ugid_);
|
||||
|
||||
return fs::mknod(path_,mode_,dev_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue