Re: [perl #60732] Hash indexes shouldn't work on array refs

2008-11-24 Thread Moritz Lenz
jerry gay wrote: > On Fri, Nov 21, 2008 at 10:43, via RT Moritz Lenz > <[EMAIL PROTECTED]> wrote: >> # New Ticket Created by Moritz Lenz >> # Please include the string: [perl #60732] >> # in the subject line of all future correspondence about this issue. >> # http://rt.perl.org/rt3/Ticket/Display

Re: S16: chown, chmod

2008-11-24 Thread dpuu
On Nov 23, 3:56 pm, [EMAIL PROTECTED] (Brandon S. Allbery KF8NH) wrote: > I think you're seeing something other than what we are.  Checking any   > external resource before operating on it introduces a race condition   > which can allow an attacker to swap resources on you, so the item you   > (in

Re: S16: chown, chmod

2008-11-24 Thread dpuu
On Nov 23, 4:55 pm, [EMAIL PROTECTED] (Aristotle Pagaltzis) wrote: > I don’t see any examples in S16 concerning error handling anyway, > but even so I don’t see how relying on exceptions would could > possibly be more complex than guard clauses. Neither do I. Catching Failure objects is better th

Re: [perl #60732] Hash indexes shouldn't work on array refs

2008-11-24 Thread Rafael Garcia-Suarez
Moritz Lenz wrote in perl.perl6.compiler : > jerry gay wrote: >> On Fri, Nov 21, 2008 at 10:43, via RT Moritz Lenz >> <[EMAIL PROTECTED]> wrote: >>> # New Ticket Created by Moritz Lenz >>> # Please include the string: [perl #60732] >>> # in the subject line of all future correspondence about this

Re: [perl #60732] Hash indexes shouldn't work on array refs

2008-11-24 Thread Jon Lang
On Mon, Nov 24, 2008 at 7:19 AM, Rafael Garcia-Suarez <[EMAIL PROTECTED]> wrote: > Moritz Lenz wrote in perl.perl6.compiler : >> jerry gay wrote: >>> On Fri, Nov 21, 2008 at 10:43, via RT Moritz Lenz >>> <[EMAIL PROTECTED]> wrote: # New Ticket Created by Moritz Lenz # Please include the

Re: S16: chown, chmod

2008-11-24 Thread Brandon S. Allbery KF8NH
On 2008 Nov 24, at 10:36, dpuu wrote: On Nov 23, 3:56 pm, [EMAIL PROTECTED] (Brandon S. Allbery KF8NH) wrote: I think you're seeing something other than what we are. Checking any external resource before operating on it introduces a race condition which can allow an attacker to swap resources o

Re: S16: chown, chmod

2008-11-24 Thread Brandon S. Allbery KF8NH
On 2008 Nov 24, at 10:45, dpuu wrote: PS. From S16, q{ ... On POSIX systems, you can detect this condition this way: use POSIX qw(sysconf _PC_CHOWN_RESTRICTED); $can_chown_giveaway = not sysconf(_PC_CHOWN_RESTRICTED); } From this I inferred that the purpose of this assignment was to do a