Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
darwin, loopback: emulate UTIME_OMIT
All but the newest OSX versions (xnu-4570.1.46, released 2017) lack utimensat() and UTIME_OMIT, see: https://github.com/apple/darwin-xnu/blame/0a798f6738bc1db01281fc08ae024145e84df927/bsd/sys/stat.h#L537 The UTIME_OMIT value is intepreted literally by darwin, resulting in all files getting a 1970 timestamp ( rfjakob/gocryptfs#229 ). Emulate UTIME_OMIT by filling in the missing values using an extra GetAttr call.
- Loading branch information