Bruce Evans wrote:
> On Mon, 8 Nov 1999, Maxim Sobolev wrote:
>
> > Does anybody can explain why two absolutely identical attempts to remove
> > unexistent files on UFS and FAT32 yields different error codes ("No such
> > file or directory" and "Invalid argument" respectively)? This breaks "rm
> > -f" behaviour, because instead of expected "0", "rm -f" on FAT returns
> > error code instead.
>
> unlink("/mnt/*.no_such_files") on msdosfs returns EINVAL because the
> pathname contains the invalid character '*'. EINVAL used to be a
> documented errno for pathnames containing characters with their high
> bit set). This documentation should have been made filesystem-
> dependent instead of removing it.
If your logic is right, then attempt to remove existent files from FAT using
'*' should yield absolutely the same result (i.e. EINVAL). But in fact files
being removed from FAT w/o any problems (touch /fat/1.exist /fat/2.exist ; rm
/*.exist). IMHO it is clear bug in unlink error codes on FAT f/s.
-Maxim
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message