mirror of
https://github.com/vgough/encfs.git
synced 2024-11-22 16:03:34 +01:00
use lutimes instead of utimes - see issue 44
git-svn-id: http://encfs.googlecode.com/svn/trunk@49 db9cf616-1c43-0410-9cb8-a902689de0d6
This commit is contained in:
parent
f6c5f0440a
commit
72cbe023d5
@ -544,7 +544,7 @@ int _do_utimens(EncFS_Context *, const string &cyName,
|
|||||||
tv[1].tv_sec = ts[1].tv_sec;
|
tv[1].tv_sec = ts[1].tv_sec;
|
||||||
tv[1].tv_usec = ts[1].tv_nsec / 1000;
|
tv[1].tv_usec = ts[1].tv_nsec / 1000;
|
||||||
|
|
||||||
int res = utimes( cyName.c_str(), tv);
|
int res = lutimes( cyName.c_str(), tv);
|
||||||
return (res == -1) ? -errno : ESUCCESS;
|
return (res == -1) ? -errno : ESUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user