]> git.proxmox.com Git - libgit2.git/commit - src/win32/posix_w32.c
win32: enable `p_utimes` for readonly files
authorEdward Thomson <ethomson@edwardthomson.com>
Wed, 5 Apr 2017 08:50:12 +0000 (09:50 +0100)
committerEdward Thomson <ethomson@edwardthomson.com>
Wed, 5 Apr 2017 10:04:29 +0000 (11:04 +0100)
commit89d403cce27eca2ee58d2d5fe7b1bf64b59eaf3c
tree1eb5f2511f260c4ec4fba0b264ac2393275a1431
parent7ece906598fff75ea0d0b73b7158c077e6654698
win32: enable `p_utimes` for readonly files

Instead of failing to set the timestamp of a read-only file (like any
object file), set it writable temporarily to update the timestamp.
src/posix.h
src/win32/posix_w32.c
tests/odb/freshen.c