Files with system bit set.
Mon May 8 14:28:00 GMT 2000
Chris Faylor wrote:
> Doesn't this always set errno to EINVAL? How is that better?
It's better because it's the expected behaviour for ordinary
files. Excerpt from path_conv::check():
int len = sym.check (path_copy, suff);
path_flags = sym.pflags;
/* If symlink.check found an existing non-symlink file, then
it returns a length of 0 and sets errno to EINVAL. It also sets
any suffix found into `ext_here'. */
if (!sym.is_symlink && sym.fileattr != (DWORD) -1)
if (component == 0)
fileattr = sym.fileattr;
goto out; // file found
More information about the Cygwin-patches