* [musl] hasmntopt(3) match options instead of substring?
@ 2025-02-03 23:46 Sertonix
0 siblings, 0 replies; only message in thread
From: Sertonix @ 2025-02-03 23:46 UTC (permalink / raw)
To: musl
Hi,
people reported issues with mount options not working correctly with
ZFS[1] and someone noticed that it could be related to a behaviour
difference of hasmntopt(3) between musl and glibc.
The manpage[2] mentions that it returns a "substring that matches opt".
Just like musl has implemented it this is just strstr. The problem is
that it will return "atime" as a option found in "noatime" even though
that is probably not what people want.
glibc only accepts matches that match the complete option name.[3]
Would it be possible for musl to only match options as well?
Ideally the wording of hasmntopt(3) would be improved too.
[1]: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12382
[2]: https://man.archlinux.org/man/hasmntopt.3.en
[3]: https://codebrowser.dev/glibc/glibc/misc/mntent_r.c.html#__hasmntopt
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-03 23:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-03 23:46 [musl] hasmntopt(3) match options instead of substring? Sertonix
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).