Skip to content

Chore: Fix completion permissions#299

Merged
jordikroon merged 1 commit into
php:masterfrom
hakre:patch-1
Jun 13, 2026
Merged

Chore: Fix completion permissions#299
jordikroon merged 1 commit into
php:masterfrom
hakre:patch-1

Conversation

@hakre

@hakre hakre commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Remove the executable bit from the completion file: it is sourced and should never have been executable.

The globbetyglob()/make_scripts_executable() functions, introduced in ae7bebe ("Add autoconf && ./configure && make test_xml replacement", 2007-09-08), are no longer needed. Executable bits are now managed by version control, so the functions are removed as well.

Remove the executable bit from the completion file: it
is sourced and should never have been executable.

The globbetyglob()/make_scripts_executable() functions,
introduced in ae7bebe ("Add autoconf && ./configure &&
make test_xml replacement", 2007-09-08), are no longer
needed. Executable bits are now managed by version
control, so the functions are removed as well.
@jordikroon

Copy link
Copy Markdown
Member

From what I can see this looks good to me. But it's good if @alfsb can take a final look.

@jordikroon jordikroon requested a review from alfsb June 13, 2026 08:42

@alfsb alfsb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never used these .sh scripts like this, but always considered having a dynamic changing of executable permitions a security risk. Better be safe than sorry. If anyone complains, then we see how to fix this old usage.

@jordikroon jordikroon merged commit 59621bf into php:master Jun 13, 2026
9 of 12 checks passed
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.

3 participants