Skip to content

Conversation

@bmwiedemann
Copy link
Member

Barewords in Perl are package level and may be interpreted as subroutine calls if a subroutine with a name colliding with the file handle's name is declared in the package.

This was one of the issues found via perlcritic by Radically Open Security.

@mlschroe
Copy link
Member

mlschroe commented May 7, 2025

Not that I mind the change, as perl versions that don't support file handle autovivication are no longer supported by obs-build. But the change is actually a non-issue due to the local statement that kills the global namespace entry.

@mlschroe
Copy link
Member

mlschroe commented May 7, 2025

(But I do not like the open(my $fd) form. Personal taste, I guess.)

@mlschroe
Copy link
Member

mlschroe commented May 7, 2025

But this needs to be changed so that lowercase variable names are used.

Barewords in Perl are package level and may be interpreted as subroutine calls if a subroutine with a name colliding with
the file handle's name is declared in the package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants