Re: VFAT: Can't create file named 'aux.h'?
From: Yaroslav Rastrigin
Date: Tue Mar 21 2006 - 00:46:36 EST
Hi,
On 21 March 2006 00:46, you wrote:
> > Hi everybody,
> >
> >while trying to back up a couple Linux directories to a FAT disk I ran
> >into a weird situation: I can't create a file called aux.h on the FAT
> >system!
> >
> On DOS et al, there are a number of special filenames, such as
>
> com1:
> com2: (and so on)
> lpt1:
> lpt2: (and so on)
> con:
> aux
> nul
>
> (Try `dir >nul`, it's equivalent to unix's `ls -l >/dev/null` --
> aux is the auxiliary port, whatever that is)
>
> It seems only fair to me to not allow creating these files under Linux
> either, to avoid problems when booting back to Dos/Windows.
This is true. smbfs, OTOH, has no such checks, so creating aux.h on an smb share is one easy way to DoS
all WinXP machines using(browsing) this share. Explorer hangs on reading directory with this file.
>
>
> Jan Engelhardt
--
Managing your Territory since the dawn of times ...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/