Re: VFAT: Can't create file named 'aux.h'?

From: H. Peter Anvin
Date: Tue Mar 21 2006 - 16:18:01 EST

Phillip Susi wrote:
H. Peter Anvin wrote:

Probably it would be worth trying to create "aux.h" under XP and see what happens. Unfortunately I don't have a 'doze system handy at the moment.

kernel32.dll's CreateFile() and other apis normally perform translation which includes special handling for dos device names including AUX. You can bypass this by prefixing the absolute file name with the string "\\?\" and this will allow you to create a file named AUX. It also allows you to reference file names with absolute paths greater than 255 characters.

So, in other words, Windows will let you create these files; it will just make you just through hoops to access them.

Sounds like they should be able to be legitimately created. If the shortnames are mangled, even DOS or Win9x could access them using the shortname.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at