Linux-kernel mailing list archive 1997-49,: Re: Version 2.1.70 ms-dos fs strange.

# Re: Version 2.1.70 ms-dos fs strange.

Bill Hawes (whawes@star.net)
Sun, 07 Dec 1997 08:13:22 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: t0mmy: "Re: Security Anti Symlink Attack Patch for 2.1.71"
- Previous message: Manuel J. Galan: "2.1.71 lp is not working again :-("

Rogier Wolff wrote:
> If you pass an invalid filename to the stat call the call is at
> liberty to (*) return you "invalid argument".

For a stat call you could argue either way: EINVAL because it's invalid,
ENOENT because the filesystem would never allow you to create an invalid
filename, so therefore it won't exist. OTOH a create/mkdir/mknod call
must return EINVAL, as it's the most specific error for the situation.

If the EINVAL is breaking commands, it seems to me it would be better to
map it to ENOENT where possible. The difference in file system semantics
makes some changes necessary, and we want msdos fs to be as useful as
possible.

I'd still like to know if this is a change in behavior from 2.0.xx
though.

Regards,
Bill

- Next message: t0mmy: "Re: Security Anti Symlink Attack Patch for 2.1.71"
- Previous message: Manuel J. Galan: "2.1.71 lp is not working again :-("