summaryrefslogtreecommitdiff
path: root/win32/file.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-22 01:43:31 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-22 01:43:31 +0000
commit48d22f8360cf22f4c2ee8d00d1227af3ed94460f (patch)
tree0bb29173286ffcac693698e51530651c8dc6c0d2 /win32/file.c
parent6f6e35f4cacabdf753c50ef0dc823072651a672a (diff)
* file.c, win32/file.c: Removed obsoleted safe level checks.
[fix GH-1327] Patch by @cremno git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/file.c')
-rw-r--r--win32/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/file.c b/win32/file.c
index d1b9bf0d21f..becbd5f38ca 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -27,7 +27,7 @@ static struct code_page_table {
#define INVALID_CODE_PAGE 51932
#define PATH_BUFFER_SIZE MAX_PATH * 2
-#define insecure_obj_p(obj, level) ((level) >= 4 || ((level) > 0 && OBJ_TAINTED(obj)))
+#define insecure_obj_p(obj, level) ((level) > 0 && OBJ_TAINTED(obj))
/* defined in win32/win32.c */
#define system_code_page rb_w32_filecp