This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: [Bob.Burger@sagian.com: 1.3.19: Everyone has write access to .lnk symbolic link files]
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin-developers at cygwin dot com
- Date: Tue, 04 Feb 2003 14:09:33 -0500
- Subject: Re: [Bob.Burger@sagian.com: 1.3.19: Everyone has write access to .lnk symbolic link files]
At 06:31 PM 2/4/2003 +0100, Corinna Vinschen wrote:
>According to the behaviour on Linux, the symlink should always have
>permissions like "rw-r--r--" and only stat() returns "rwxrwxrwx". The
>change is very easy
>
> {
> /* symlinks are anything for everyone! */
> if ((attribute & S_IFLNK) == S_IFLNK)
> - attribute |= S_IRWXU | S_IRWXG | S_IRWXO;
> + attribute = STD_RBITS | STD_WBITS;
Those two lines can actually go away completely because attribute
is already set in path.cc . It should be changed there instead.
>and I actually doubt that it will negatively affect Cygwin but I'm not
>100% sure if I'm missing something.
>
>What do you think?
If you are missing something, so am I.
Pierre