Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix stat() and lstat() calls for perl 5.23.3+ (#291) #293

Merged
merged 1 commit into from
May 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/perl5i/2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ sub perl5i_die {

# File::stat does not play nice in list context
sub stat {
return CORE::stat(@_) if wantarray;
return CORE::stat($_[0]) if wantarray;
return File::stat::stat(@_);
}

sub lstat {
return CORE::lstat(@_) if wantarray;
return CORE::lstat($_[0]) if wantarray;
return File::stat::lstat(@_);
}

Expand Down