Mail Archives: djgpp-workers/2000/06/28/10:46:45
On Wed, 28 Jun 2000, Laurynas Biveinis wrote:
> Eli Zaretskii wrote:
> > If we want chown to support devices and root directories, you might
> > as well use your original code with access instead of __file_exists.
> > It doesn't make sense to add complexity to __file_exists just to make
> > a no-op function such as chown be marginally simpler.
>
> So __file_exists() is intentionally meant not to detect devices?
Yes, __file_exists was written to be lean and mean, only for files,
it is meant to avoid all the complications of Posix compliance.
> This sounds a little bit dangerous to me. At least it should be
> documented.
Yes, documenting this would be a good idea.
> But in any case, chown() should use access(). OK to commit?
Yes, I think so.
- Raw text -