Fix Unix.utimes not working for directories on Win32. (#8796)
parent
8575a4b577
commit
0280127761
4
Changes
4
Changes
|
@ -294,6 +294,10 @@ OCaml 4.12.0
|
||||||
|
|
||||||
### Other libraries:
|
### Other libraries:
|
||||||
|
|
||||||
|
- #8796: On Windows, make Unix.utimes use FILE_FLAG_BACKUP_SEMANTICS flag
|
||||||
|
to allow it to work with directories.
|
||||||
|
(Daniil Baturin, review by Damien Doligez)
|
||||||
|
|
||||||
* #9206, #9419: update documentation of the threads library;
|
* #9206, #9419: update documentation of the threads library;
|
||||||
deprecate Thread.kill, Thread.wait_read, Thread.wait_write,
|
deprecate Thread.kill, Thread.wait_read, Thread.wait_write,
|
||||||
and the whole ThreadUnix module.
|
and the whole ThreadUnix module.
|
||||||
|
|
|
@ -56,7 +56,7 @@ CAMLprim value unix_utimes(value path, value atime, value mtime)
|
||||||
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
NULL,
|
NULL,
|
||||||
OPEN_EXISTING,
|
OPEN_EXISTING,
|
||||||
0,
|
FILE_FLAG_BACKUP_SEMANTICS,
|
||||||
NULL);
|
NULL);
|
||||||
caml_leave_blocking_section();
|
caml_leave_blocking_section();
|
||||||
caml_stat_free(wpath);
|
caml_stat_free(wpath);
|
||||||
|
|
Loading…
Reference in New Issue