Mail Archives: cygwin-developers/1998/04/07/18:29:07
From: Geoffrey Noer <noer AT cygnus DOT com>
Date: Tue, 7 Apr 1998 17:36:59 -0700 (PDT)
> In fact symlinks to directories weren't "officially"
> supported before, they just worked. I had assumed
> that when B19 came out, and they stopped working
> there was a reason for it, but I don't see one.
>
> path.cc winsup-980401
>
> /* A symlink will have the `system' file attribute. */
> /* Directories cannot be symlinks. */
> if ((fileattr & (FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_DIRECTORY)) !=
> FILE_ATTRIBUTE_SYSTEM)
> return 0;
I don't see what this has to do with having a symlink to a directory.
This code says that a file can not be both a symlink and a directory.
That's correct. A symlink to a directory is not a directory. It's a
symlink.
On Unix it is certainly impossible to have a file which is both a
symlink and a directory.
I'll probably commit the change since it looks right...
I think this needs more thought.
Ian
- Raw text -