Closed Janno closed 9 months ago
Indeed, this is one of the paths that are checked. We do not check whether it is a regular file though. A temporary workaround is to rename your directory.
MR welcome!
Maybe the easiest fix here is to open()
and then on success fdopen()
.
Maybe the easiest fix here is to
open()
and then on successfdopen()
.
@whot how would you do that?
I opened #441 with another approach.
/me types code /me reads man page
nevermind, what I had in mind (catching EISDIR
) won't work since we only open readonly. So your stat approach is the correct one, see my comment re: race condition there though please.
I am getting this error message from software that uses
xkbcommon
:~/.config/XCompose
is a directory in my case and what is failing here is a call tommap
on that directory. I don't thinkmmap
should be called on directories?strace
reports:I am not 100% sure that this is
xkbcommon
's fault but I did check the documentation and the docs forxkb_compose_table_new_from_locale
make it sound likexkbcommon
is the one that decides to open this file.