Skip to content

Commit

Permalink
Merge pull request ocaml-multicore#723 from jebrosen/fix/openbsd
Browse files Browse the repository at this point in the history
eio_posix: fix filesystem tests on OpenBSD
  • Loading branch information
talex5 authored Apr 5, 2024
2 parents 58aa3f6 + 7c9396e commit c1c2d63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib_eio_posix/low_level.ml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ module Resolve = struct
| new_base ->
state.dir_stack <- Tmp (new_base, state.dir_stack);
resolve state xs
| exception (Unix.Unix_error ((ENOTDIR | EMLINK | EUNKNOWNERR _), _, _) as e) ->
| exception (Unix.Unix_error ((ELOOP | ENOTDIR | EMLINK | EUNKNOWNERR _), _, _) as e) ->
(* Note: Linux uses ELOOP or ENOTDIR. FreeBSD uses EMLINK. NetBSD uses EFTYPE. *)
match Eio_unix.Private.read_link_unix base x with
| target ->
decr_max_follows state x;
Expand Down

0 comments on commit c1c2d63

Please sign in to comment.