2 ms·
> But you can't implement a case insensitive version of O_EXCL in userland. So leave O_EXCL in the kernel in its current case-sensitive form. In userspace, imp
by nybble41 8y ago
> But you can't implement a case insensitive version of O_EXCL in userland.
So leave O_EXCL in the kernel in its current case-sensitive form. In userspace, implement normalization and case-folding as you see fit and pass the normalized, case-folded filename to open(). Ignore any files other programs may create with non-normalized names. Keep an xattr or lookup table with the unfolded "presentation" version of the name for directory listings.