21 Oct 2026
mountpoint now checks the right folder and exits like util-linux
- What was broken
- The mountpoint tool compared a path with the parent of the folder it was run from, not the path's own parent, so the answer depended on where you ran it. It also always exited with success.
- What I changed
- On Linux it now asks the kernel's mount list, so bind mounts and mounts on files are found, and it falls back to the old check without /proc. Exit codes match util-linux.
- Why it matters
- Scripts that use mountpoint get the right answer and exit code.
see the code, #671 ↗ (opens in a new tab)
← every project