Linux fstatat() returns ENOENT if pathname is an empty string and
AT_EMPTY_PATH was not specified in flags.
trivial fix, to get an opinon, is this needed for FreeBSD fstatat?
Differential D41015
linux(4): Handle specific to Linux fstatat() error case Authored by dchagin on Jul 13 2023, 9:48 AM. Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineComment Actions Are you doing second copyinstr() over the same user path? This introduces the race. What is the current FreeBSD reaction to the condition? Comment Actions yes, first in namei
ENOTDIR as documented Comment Actions Look at NIRES_EMPTYPATH. If the flag is set and ENOTDIR is returned, translate it to ENOENT. I assume we want to keep the FreeBSD error? Comment Actions i would say unless there is a good reason to deviate, the error returned should be compatible with linux Comment Actions I don’t have a strong opinion, if we get a consensus, I’ll prepare the fix. Konstantin? |