Skip to content

Commit 9808d13

Browse files
committed
Fix eio_windows
1 parent 85ffd3d commit 9808d13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib_eio_windows/low_level.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ let read_link ?dirfd path =
140140

141141
let chown ?dirfd ~follow:_ ~uid ~gid path =
142142
in_worker_thread @@ fun () ->
143-
Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
143+
match dirfd with
144+
| None -> failwith "Chown is unsupported on Windows"
145+
| Some dirfd -> Eio_unix.Private.chown ~flags:0 ~uid ~gid dirfd path
144146

145147
external eio_readv : Unix.file_descr -> Cstruct.t array -> int = "caml_eio_windows_readv"
146148

0 commit comments

Comments
 (0)