From 6eab49a40abcc743ddffcd5fc7103acbea06b215 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 29 Jul 2019 12:10:15 -0700 Subject: Revert "Do not always taint the result of File#path" This reverts commit 1a759bfe5d554c22571d2e6e4e5998cf06a7b98f. This fails on some operating systems. --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') 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 -- cgit v1.2.3