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

Remove ENABLE_PATH_CHECK workaround #490

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Earlopain
Copy link
Contributor

Since Ruby 2.7, this warning is not emitted anymore It was removed as part of https://bugs.ruby-lang.org/issues/16131

Here's the output of running ENV['PATH'] against various ruby versions, when $PATH contains a world-writable folder:

===============1.8.7-p374================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
===============1.9.3-p551================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
===============2.0.0-p648================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.1.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.2.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
==================2.3.8==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.4.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
==================2.5.9==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.6.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
==================2.7.8==================
==================3.0.7==================
==================3.1.6==================
==================3.2.6==================
==================3.3.6==================
================3.4.0-rc1================

Since Ruby 2.7, this warning is not emitted anymore
It was removed as part of https://bugs.ruby-lang.org/issues/16131

Here's the output of running `ENV['PATH']` against various ruby versions,
when `$PATH` contains a world-writable folder:

```
===============1.8.7-p374================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
===============1.9.3-p551================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
===============2.0.0-p648================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.1.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.2.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
==================2.3.8==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.4.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
==================2.5.9==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
=================2.6.10==================
-e:1: warning: Insecure world writable dir /app/whatever in PATH, mode 040757
==================2.7.8==================
==================3.0.7==================
==================3.1.6==================
==================3.2.6==================
==================3.3.6==================
================3.4.0-rc1================
```
@Earlopain Earlopain marked this pull request as draft December 20, 2024 07:37
@Earlopain
Copy link
Contributor Author

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.

1 participant