mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Prevent utimesat / zipos breakage (#532)
This commit is contained in:
parent
de48bae30e
commit
3b81bec5ae
1 changed files with 3 additions and 2 deletions
|
@ -62,8 +62,9 @@ int utimensat(int dirfd, const char *path, const struct timespec ts[2],
|
|||
rc = einval(); // unsupported flag
|
||||
} else if (!path && flags) {
|
||||
rc = einval(); // futimens() doesn't take flags
|
||||
} else if (weaken(__zipos_notat) && (rc = __zipos_notat(dirfd, path)) == -1) {
|
||||
STRACE("zipos mkdirat not supported yet");
|
||||
} else if ((path || __isfdkind(dirfd, kFdZip)) && weaken(__zipos_notat) &&
|
||||
(rc = __zipos_notat(dirfd, path)) == -1) {
|
||||
STRACE("zipos utimensat not supported yet");
|
||||
} else if (!IsWindows()) {
|
||||
rc = sys_utimensat(dirfd, path, ts, flags);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue