From d4b5b5fe4f718ee5bf78ba48adfca12d75069da1 Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 4 Oct 2008 13:42:00 +0000 Subject: * dln.c: Ruby no longer supports MacOS 9 or before. * eval.c: ditto. * eval_intern.h: ditto. * ext/extmk.rb: ditto. * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto. * ext/tk/stubs.c: ditto. * file.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * ruby.c: ditto. * signal.c: ditto. * vm_core.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 415c866ec..21f74f012 100644 --- a/file.c +++ b/file.c @@ -4468,15 +4468,6 @@ rb_path_check(const char *path) return 1; } -#if defined(__MACOS__) || defined(riscos) -static int -is_macos_native_path(const char *path) -{ - if (strchr(path, ':')) return 1; - return 0; -} -#endif - static int file_load_ok(const char *path) { @@ -4571,16 +4562,6 @@ rb_find_file(VALUE path) f = StringValueCStr(path); } -#if defined(__MACOS__) || defined(riscos) - if (is_macos_native_path(f)) { - if (rb_safe_level() >= 1 && !fpath_check(f)) { - rb_raise(rb_eSecurityError, "loading from unsafe file %s", f); - } - if (file_load_ok(f)) return path; - return 0; - } -#endif - if (is_absolute_path(f) || is_explicit_relative(f)) { if (rb_safe_level() >= 1 && !fpath_check(f)) { rb_raise(rb_eSecurityError, "loading from unsafe file %s", f); -- cgit