diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-07-29 12:10:15 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-07-29 12:10:15 -0700 |
commit | 6eab49a40abcc743ddffcd5fc7103acbea06b215 (patch) | |
tree | 2e4bbda2df7791cffc6763a30d78392e60513657 /file.c | |
parent | 177731aadf0d2b2fb293e221728252c73446235a (diff) |
Revert "Do not always taint the result of File#path"
This reverts commit 1a759bfe5d554c22571d2e6e4e5998cf06a7b98f.
This fails on some operating systems.
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -475,7 +475,7 @@ rb_file_path(VALUE obj) rb_raise(rb_eIOError, "File is unnamed (TMPFILE?)"); } - return rb_str_dup(fptr->pathv); + return rb_obj_taint(rb_str_dup(fptr->pathv)); } static size_t |