Skip to content

Plack::App::File stat'ing filename rather than handle? #715

Description

@mla

Why does Plack::App::File do this:

   open my $fh, "<:raw", $file
        or return $self->return_403;

    my @stat = stat $file;

Can't we stat $fh instead and not have a potential race there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions