summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-07-29 12:10:15 -0700
committerJeremy Evans <code@jeremyevans.net>2019-07-29 12:10:15 -0700
commit6eab49a40abcc743ddffcd5fc7103acbea06b215 (patch)
tree2e4bbda2df7791cffc6763a30d78392e60513657 /file.c
parent177731aadf0d2b2fb293e221728252c73446235a (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 70f32833ba..0742c52d66 100644
--- a/file.c
+++ b/file.c
@@ -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