diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 14:21:03 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-18 14:21:03 +0000 |
commit | 37627fc43b07e19e656071f17245e9b0bd1fd526 (patch) | |
tree | 42e366f472182de0a998c1d9e42b2bfd9f60d02b /ext | |
parent | 0bc07f7d0d2c6d4ab14f5b5de60a23e0614e8be0 (diff) | |
download | ruby-37627fc43b07e19e656071f17245e9b0bd1fd526.tar.gz |
* include/ruby/ruby.h: $SAFE=2 is now obsolete.
* dir.c, ext/fiddle/handle.c, ext/socket/basicsocket.c, file.c
gc.c, io.c, process.c, safe.c, signal.c, win32/file.c:
removed code for $SAFE=2
* test/erb/test_erb.rb, test/fiddle/test_handle.rb
test/ruby/test_env.rb: removed tests for $SAFE=2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fiddle/handle.c | 3 | ||||
-rw-r--r-- | ext/socket/basicsocket.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c index 4cfeedaedd..2f93f2346b 100644 --- a/ext/fiddle/handle.c +++ b/ext/fiddle/handle.c @@ -154,8 +154,6 @@ rb_fiddle_handle_initialize(int argc, VALUE argv[], VALUE self) rb_bug("rb_fiddle_handle_new"); } - rb_secure(2); - #if defined(_WIN32) if( !clib ){ HANDLE rb_libruby_handle(void); @@ -320,7 +318,6 @@ fiddle_handle_sym(void *handle, const char *name) #endif void (*func)(); - rb_secure(2); #ifdef HAVE_DLERROR dlerror(); #endif diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c index fbe5167c15..6bc1828d61 100644 --- a/ext/socket/basicsocket.c +++ b/ext/socket/basicsocket.c @@ -213,7 +213,6 @@ bsock_setsockopt(int argc, VALUE *argv, VALUE sock) rb_scan_args(argc, argv, "30", &lev, &optname, &val); } - rb_secure(2); GetOpenFile(sock, fptr); family = rsock_getfamily(fptr->fd); level = rsock_level_arg(family, lev); |