This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]