Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-11 Thread Reini Urban
2009/8/11 Corinna Vinschen: > On Aug 11 12:44, Reini Urban wrote: >> 2009/8/11 Corinna Vinschen: >> > That might be a good workaround nevertheless.  You should just test the >> > list of supplementary groups as well, along these lines: >> >> We already have an ingroup() check in this Perl_cando() f

Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-11 Thread Corinna Vinschen
On Aug 11 12:44, Reini Urban wrote: > 2009/8/11 Corinna Vinschen: > > That might be a good workaround nevertheless.  You should just test the > > list of supplementary groups as well, along these lines: > > We already have an ingroup() check in this Perl_cando() function, so > there is no > need t

Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-11 Thread Reini Urban
2009/8/11 Corinna Vinschen: > On Aug 11 04:49, Reini Urban wrote: >> 2009/8/11 Reini Urban: >> > 2009/8/10 Corinna Vinschen: >> >> On Aug 10 20:11, Alexey Borzenkov wrote: >> >>> Anyway, it means there is a bug in perl, because on Linux: >> >>> >> >>> r...@kitsu:~# touch test.txt >> >>> r...@kitsu:

Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-11 Thread Corinna Vinschen
On Aug 11 04:49, Reini Urban wrote: > 2009/8/11 Reini Urban: > > 2009/8/10 Corinna Vinschen: > >> On Aug 10 20:11, Alexey Borzenkov wrote: > >>> Anyway, it means there is a bug in perl, because on Linux: > >>> > >>> r...@kitsu:~# touch test.txt > >>> r...@kitsu:~# chmod 0444 test.txt > >>> r...@kit

Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-10 Thread Reini Urban
2009/8/11 Reini Urban: > 2009/8/10 Corinna Vinschen: >> On Aug 10 20:11, Alexey Borzenkov wrote: >>> On Mon, Aug 10, 2009 at 5:25 PM, Corinna >>> Vinschen wrote: >>> > That's a bug in your testsuite.  I assume you're running the tests as >>> > administrator, right?  Administrators have the right to

Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-10 Thread Reini Urban
2009/8/10 Corinna Vinschen: > On Aug 10 20:11, Alexey Borzenkov wrote: >> On Mon, Aug 10, 2009 at 5:25 PM, Corinna >> Vinschen wrote: >> > That's a bug in your testsuite.  I assume you're running the tests as >> > administrator, right?  Administrators have the right to write to all >> > files, even

Re: Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-10 Thread Alexey Borzenkov
On Mon, Aug 10, 2009 at 8:40 PM, Corinna Vinschen wrote: > That's a bug in perl.  There are other OSes out there which have > root-like permissions for non-0 uids.  Perl should use the access() > function to check for read/write/execute permissions, which always > returns the correct result indepen

Perl bug (was Re: [1.7] cygwin allows writing to readonly files)

2009-08-10 Thread Corinna Vinschen
On Aug 10 20:11, Alexey Borzenkov wrote: > On Mon, Aug 10, 2009 at 5:25 PM, Corinna > Vinschen wrote: > > That's a bug in your testsuite.  I assume you're running the tests as > > administrator, right?  Administrators have the right to write to all > > files, even R/O files, according to POSIX rule