How would a case-insensitive magic_open() call work?
Posted Feb 19, 2004 9:11 UTC (Thu) by brouhaha
Parent article: The kernel and character set encodings
Suppose I have two files named "Foobar" and "foobaR" in a particular directory. The user (possibly Samba) calls magic_open("foobar", ...).
What can be expected to happen?
I think this proposed magic_open() call is almost as bad an idea as providing an option to allow normal open()s (or the filesystem code) to be case insensitive. The few applications that really need this sort of behavior should implement it in user space by reading the directory, and they can worry about how to handle ambiguous cases there.
to post comments)