mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 15:06:33 -05:00
consolidate and simplify utime
This commit is contained in:
parent
6d6fb45a3b
commit
00c814dc58
9 changed files with 472 additions and 225 deletions
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "config.hpp"
|
||||
#include "errno.hpp"
|
||||
#include "fs_base_utimensat.hpp"
|
||||
#include "fs_base_utime.hpp"
|
||||
#include "fs_path.hpp"
|
||||
#include "rv.hpp"
|
||||
#include "rwlock.hpp"
|
||||
|
|
@ -45,7 +45,7 @@ _utimens_loop_core(const string *basepath,
|
|||
|
||||
fs::path::make(basepath,fusepath,fullpath);
|
||||
|
||||
rv = fs::utimensat(AT_FDCWD,fullpath,ts,AT_SYMLINK_NOFOLLOW);
|
||||
rv = fs::lutime(fullpath,ts);
|
||||
|
||||
return calc_error(rv,error,errno);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue