Repository activity
40458 results across all weeks
eio_posix: connect to a full Unix-domain listener returns an unconnected socket
On Linux, a non-blocking connect on a Unix-domain socket whose listener's backlog is full fails with EAGAIN, which means "not connected, try again" rather than "in progress" as for TCP. connect in lib_eio_posix/low_level.ml handles EAGAIN like EINPROGRESS: it waits for the socket to be writable, finds no error in SO_ERROR, and returns. The caller gets a sock…
Thomas Gazagnaire (@samoht)eio_posix: creating a file at a path with a trailing slash fails with EINVAL
Creating a file at a path that ends in a slash fails with EINVAL on eio_posix. Linux's open(2) and eio_linux give EISDIR. open_unconfined in lib_eio_posix/low_level.ml adds O_DIRECTORY when the path has a trailing slash, and the kernel rejects O_CREAT | O_DIRECTORY with EINVAL.
Thomas Gazagnaire (@samoht)eio_posix: don't let a trailing slash follow symlinks out of the sandbox
A trailing slash on the last component of a path is still treated as a followable symlink. When resolving a path in Eio_posix without O_RESOLVE_BENEATH, a symlink was therefore followed without checking!
Anil Madhavapeddy (@avsm)getnameinfo raises a raw Not_found when the lookup fails
Eio_unix.Net.getnameinfo, which both eio_posix and eio_linux use, calls Unix.getnameinfo, which raises Not_found when the lookup fails. It reaches the caller unwrapped, so a handler for Eio.Io misses it, and the getnameinfo docs do not mention it.
Thomas Gazagnaire (@samoht)windows: support symlinks and junctions without sandbox escapes
I registered a bunch of failing tests on Windows in #953, and this (unfortunately rather large) PR fleshes out support on Windows for symlinks, junctions, and all the other variants that appear. The fs.mli note has the differences to the best of my (imperfect) understanding, but this PR does allow Forester to make progress even with symlinks in the forest st…
Anil Madhavapeddy (@avsm)bootstrap failure on Windows with OCaml 4.13.1
Expected Behavior
Ali Caglayan (@Alizter)3.25.0
CHANGES:
Shon Feder (@shonfeder)3.25.0 release tracker
Known blockers
Ali Caglayan (@Alizter)3.25.1 release tracker
Fixes
Shon Feder (@shonfeder)Add `release-merge-main.sh` script
Description
Shon Feder (@shonfeder)Add a test showing that tools are picked from the PATH.
Reproduction for issue #17004.
mefyl (@mefyl)Add option to disable documentation during installation
The release of dune 3.25.0 revealed a bug in the generated dune-package files. The files contain a doc section with a path, and and also a doc section with file names. Starting with 3.25.0 the absence of the combined path+files is fatal, which affects a small number of packages in my environment.
Olaf Hering (@olafhering)Add qualified tools support
Qualified tools
mefyl (@mefyl)Allow variables in function arguments
Desired Behavior
Stephen Dolan (@stedolan)Bump dune version to 3.26
For #16604
Shon Feder (@shonfeder)Do not add the entirety of the lock directory in the PATH.
Description
mefyl (@mefyl)Dune 3.25 rejects formatting dialects for parser-generator inputs
Projects defining .mly or .mll dialects for formatting alongside (menhir ...) or (ocamllex ...) now fail with:
Ali Caglayan (@Alizter)Each .merlin-conf lists the ocaml-index of every stanza, so @check grows quadratically with the number of stanzas
Expected Behavior
Thomas Gazagnaire (@samoht)Editing a `(private_modules ...)` interface does not rebuild consumers; the build then fails with "inconsistent assumptions over interface"
Expected Behavior
Thomas Gazagnaire (@samoht)Enable Merlin's PPX cache
Hello!
Paul-Elliot Anglès d'Auriac (@panglesd)