* [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check`
@ 2024-12-19 21:48 Earlopain (Earlopain _) via ruby-core
2024-12-20 1:23 ` [ruby-core:120337] " nobu (Nobuyoshi Nakada) via ruby-core
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: Earlopain (Earlopain _) via ruby-core @ 2024-12-19 21:48 UTC (permalink / raw)
To: ruby-core; +Cc: Earlopain (Earlopain _)
Issue #20971 has been reported by Earlopain (Earlopain _).
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971
* Author: Earlopain (Earlopain _)
* Status: Open
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120337] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
@ 2024-12-20 1:23 ` nobu (Nobuyoshi Nakada) via ruby-core
2024-12-20 1:57 ` [ruby-core:120338] " jeremyevans0 (Jeremy Evans) via ruby-core
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-12-20 1:23 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20971 has been updated by nobu (Nobuyoshi Nakada).
I think that `rb_path_check` is a separate thing from "object taintedness", and that the removal of `path_tainted_p` in `env_aset` in despite of it is in `!OBJ_TAINTED` side was unintentionally.
@jeremyevans0 What do you think?
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111110
* Author: Earlopain (Earlopain _)
* Status: Open
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120338] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
2024-12-20 1:23 ` [ruby-core:120337] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-12-20 1:57 ` jeremyevans0 (Jeremy Evans) via ruby-core
2024-12-20 3:16 ` [ruby-core:120339] " nobu (Nobuyoshi Nakada) via ruby-core
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jeremyevans0 (Jeremy Evans) via ruby-core @ 2024-12-20 1:57 UTC (permalink / raw)
To: ruby-core; +Cc: jeremyevans0 (Jeremy Evans)
Issue #20971 has been updated by jeremyevans0 (Jeremy Evans).
>From looking at the history, `rb_path_check` was originally used by `rb_env path_tainted`, presumably to check whether the PATH environment variable was tainted, so as not to trust it. That may be why it is in the hash.h header instead of the file.h header, even though it makes no sense in the hash.h header.
`rb_path_check` was used in MJIT, to check for unsafe header files, but that was the last usage I could see in CRuby. I'm guessing that is a reason it may not have been deprecated/removed when $SAFE/taint was deprecated/removed.
If we can do a gem codesearch for `rb_path_check`, and nothing important comes up, I am in favor of deprecating and then removing it. I looked through the first 5 pages of GitHub results and nothing of note came up, other than the fact that TruffleRuby does not implement the function.
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111111
* Author: Earlopain (Earlopain _)
* Status: Open
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120339] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
2024-12-20 1:23 ` [ruby-core:120337] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-20 1:57 ` [ruby-core:120338] " jeremyevans0 (Jeremy Evans) via ruby-core
@ 2024-12-20 3:16 ` nobu (Nobuyoshi Nakada) via ruby-core
2024-12-20 5:51 ` [ruby-core:120341] " jeremyevans0 (Jeremy Evans) via ruby-core
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-12-20 3:16 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20971 has been updated by nobu (Nobuyoshi Nakada).
I mean this warning went away since 2.7, which should be unrelated to tainted-ness.
```sh-session
$ ruby2.6 -w -rtmpdir -e 'Dir.mktmpdir("", "/tmp") {|w| File.chmod(0777, w); ENV["PATH"] = w}'
-e:1: warning: Insecure world writable dir /tmp/20241220-14749-10itz6k in PATH, mode 040777
```
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111113
* Author: Earlopain (Earlopain _)
* Status: Open
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120341] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (2 preceding siblings ...)
2024-12-20 3:16 ` [ruby-core:120339] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-12-20 5:51 ` jeremyevans0 (Jeremy Evans) via ruby-core
2024-12-20 7:35 ` [ruby-core:120343] " Earlopain (Earlopain _) via ruby-core
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jeremyevans0 (Jeremy Evans) via ruby-core @ 2024-12-20 5:51 UTC (permalink / raw)
To: ruby-core; +Cc: jeremyevans0 (Jeremy Evans)
Issue #20971 has been updated by jeremyevans0 (Jeremy Evans).
nobu (Nobuyoshi Nakada) wrote in #note-3:
> I mean this warning went away since 2.7, which should be unrelated to tainted-ness.
I see what you mean. I would be OK with adding that warning back.
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111115
* Author: Earlopain (Earlopain _)
* Status: Open
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120343] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (3 preceding siblings ...)
2024-12-20 5:51 ` [ruby-core:120341] " jeremyevans0 (Jeremy Evans) via ruby-core
@ 2024-12-20 7:35 ` Earlopain (Earlopain _) via ruby-core
2024-12-22 6:14 ` [ruby-core:120365] " nobu (Nobuyoshi Nakada) via ruby-core
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Earlopain (Earlopain _) via ruby-core @ 2024-12-20 7:35 UTC (permalink / raw)
To: ruby-core; +Cc: Earlopain (Earlopain _)
Issue #20971 has been updated by Earlopain (Earlopain _).
Interesting, I thought the removal of that warning was intentional, do other languages have similar warnings? I guess it doesn't matter if it already used to do that 🤷
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111116
* Author: Earlopain (Earlopain _)
* Status: Open
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120365] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (4 preceding siblings ...)
2024-12-20 7:35 ` [ruby-core:120343] " Earlopain (Earlopain _) via ruby-core
@ 2024-12-22 6:14 ` nobu (Nobuyoshi Nakada) via ruby-core
2024-12-24 13:24 ` [ruby-core:120394] " Eregon (Benoit Daloze) via ruby-core
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-12-22 6:14 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20971 has been updated by nobu (Nobuyoshi Nakada).
Status changed from Open to Assigned
Assignee set to matz (Yukihiro Matsumoto)
I think it would be OK to remove that warning (and `rb_patch_check` etc totally), if it is recognized officially.
@matz What do you think?
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111142
* Author: Earlopain (Earlopain _)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120394] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (5 preceding siblings ...)
2024-12-22 6:14 ` [ruby-core:120365] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-12-24 13:24 ` Eregon (Benoit Daloze) via ruby-core
2024-12-24 13:51 ` [ruby-core:120395] " Earlopain (Earlopain _) via ruby-core
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Eregon (Benoit Daloze) via ruby-core @ 2024-12-24 13:24 UTC (permalink / raw)
To: ruby-core; +Cc: Eregon (Benoit Daloze)
Issue #20971 has been updated by Eregon (Benoit Daloze).
That warning is pretty annoying in e.g. single-user Docker images where permissions might be 777 for convenience yet without real danger.
See https://github.com/actions/virtual-environments/issues/267 for a real issue caused by the warning, worked around with https://github.com/ruby/ruby-builder/blob/master/.github/workflows/build.yml#L96
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111175
* Author: Earlopain (Earlopain _)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120395] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (6 preceding siblings ...)
2024-12-24 13:24 ` [ruby-core:120394] " Eregon (Benoit Daloze) via ruby-core
@ 2024-12-24 13:51 ` Earlopain (Earlopain _) via ruby-core
2025-01-09 9:03 ` [ruby-core:120564] " matz (Yukihiro Matsumoto) via ruby-core
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Earlopain (Earlopain _) via ruby-core @ 2024-12-24 13:51 UTC (permalink / raw)
To: ruby-core; +Cc: Earlopain (Earlopain _)
Issue #20971 has been updated by Earlopain (Earlopain _).
Yes, I am also coming from the background of docker. Ruby is being build with `ENABLE_PATH_CHECK=0` to supress the warning, similar to the workflow shared above, and I noticed it doesn't actually do anything anymore on recent versions.
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111176
* Author: Earlopain (Earlopain _)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120564] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (7 preceding siblings ...)
2024-12-24 13:51 ` [ruby-core:120395] " Earlopain (Earlopain _) via ruby-core
@ 2025-01-09 9:03 ` matz (Yukihiro Matsumoto) via ruby-core
2025-01-09 17:42 ` [ruby-core:120587] " Earlopain (Earlopain _) via ruby-core
2025-01-14 2:33 ` [ruby-core:120654] " nobu (Nobuyoshi Nakada) via ruby-core
10 siblings, 0 replies; 12+ messages in thread
From: matz (Yukihiro Matsumoto) via ruby-core @ 2025-01-09 9:03 UTC (permalink / raw)
To: ruby-core; +Cc: matz (Yukihiro Matsumoto)
Issue #20971 has been updated by matz (Yukihiro Matsumoto).
As a UNIX user from ancient time, I feel a world writable directory is too dangerous to allow. But if everyone is OK to accept the new situation (especially with virtual environments), I don't strongly object.
Matz.
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111387
* Author: Earlopain (Earlopain _)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120587] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (8 preceding siblings ...)
2025-01-09 9:03 ` [ruby-core:120564] " matz (Yukihiro Matsumoto) via ruby-core
@ 2025-01-09 17:42 ` Earlopain (Earlopain _) via ruby-core
2025-01-14 2:33 ` [ruby-core:120654] " nobu (Nobuyoshi Nakada) via ruby-core
10 siblings, 0 replies; 12+ messages in thread
From: Earlopain (Earlopain _) via ruby-core @ 2025-01-09 17:42 UTC (permalink / raw)
To: ruby-core; +Cc: Earlopain (Earlopain _)
Issue #20971 has been updated by Earlopain (Earlopain _).
PR https://github.com/ruby/ruby/pull/12542
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111412
* Author: Earlopain (Earlopain _)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
* [ruby-core:120654] [Ruby master Feature#20971] Deprecate `rb_path_check`
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
` (9 preceding siblings ...)
2025-01-09 17:42 ` [ruby-core:120587] " Earlopain (Earlopain _) via ruby-core
@ 2025-01-14 2:33 ` nobu (Nobuyoshi Nakada) via ruby-core
10 siblings, 0 replies; 12+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2025-01-14 2:33 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20971 has been updated by nobu (Nobuyoshi Nakada).
I heard that that warning would be problematic on WSL as well, Windows directories cannot be changed from 777.
----------------------------------------
Feature #20971: Deprecate `rb_path_check`
https://bugs.ruby-lang.org/issues/20971#change-111481
* Author: Earlopain (Earlopain _)
* Status: Assigned
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
With #16131, various code around $SAFE, taint, etc. has been deprecated and removed. GH PR https://github.com/ruby/ruby/pull/2476.
Now, [`rb_path_check`] still exists as part of the public API, with Ruby itself never using or testing it. I believe it should have been deprecated and was simply missed. Should it be deprecated today or is that not worth the effort?
Docs for it are pretty vague: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/include/ruby/internal/intern/hash.h#L289-L297
> This function is mysterious. What it does is not immediately obvious. Also what it does seems platform dependent.
[`rb_path_check`]: https://github.com/ruby/ruby/blob/33f95d632dce42fac35da29eaed33f0a5a4f0dcb/file.c#L6427
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2025-01-14 2:49 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19 21:48 [ruby-core:120335] [Ruby master Feature#20971] Deprecate `rb_path_check` Earlopain (Earlopain _) via ruby-core
2024-12-20 1:23 ` [ruby-core:120337] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-20 1:57 ` [ruby-core:120338] " jeremyevans0 (Jeremy Evans) via ruby-core
2024-12-20 3:16 ` [ruby-core:120339] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-20 5:51 ` [ruby-core:120341] " jeremyevans0 (Jeremy Evans) via ruby-core
2024-12-20 7:35 ` [ruby-core:120343] " Earlopain (Earlopain _) via ruby-core
2024-12-22 6:14 ` [ruby-core:120365] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-24 13:24 ` [ruby-core:120394] " Eregon (Benoit Daloze) via ruby-core
2024-12-24 13:51 ` [ruby-core:120395] " Earlopain (Earlopain _) via ruby-core
2025-01-09 9:03 ` [ruby-core:120564] " matz (Yukihiro Matsumoto) via ruby-core
2025-01-09 17:42 ` [ruby-core:120587] " Earlopain (Earlopain _) via ruby-core
2025-01-14 2:33 ` [ruby-core:120654] " nobu (Nobuyoshi Nakada) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).