Filesystems and case-insensitivity
Filesystems and case-insensitivity
Posted Nov 28, 2018 14:43 UTC (Wed) by sorokin (guest, #88478)In reply to: Filesystems and case-insensitivity by bandrami
Parent article: Filesystems and case-insensitivity
> statat(2) doesn't interact with the filename at all, does it?
Unfortunately it does. See "pathname" parameter: int fstatat(int dirfd, const char *pathname, struct stat *statbuf, int flags);
It stats the file "pathname" relative to directory "dirfd". Normally when readdir returns DT_UNKNOWN one has to statat the filename relative to the directory to figure out the real d_type.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
