From 47563655037ed453607de33b86fcc094878769ac Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 Mar 2017 14:57:08 +0000 Subject: dir.c: err at glob failure * dir.c (glob_helper): raise a SystemCallError exception when opendir() failed, except for ENOENT, ENOTDIR, and EACCES. this behavior predates 1.0; the comments in glob.c claimed that glob() returned -1 on error but actualy the pointer to a global variable, then dir_glob() did check only -1 as the comments, and ignored actual errors. [ruby-core:80226] [Bug #13276] dir.c: ruby_glob_funcs_t git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index a2f780e5b2..688642796d 100644 --- a/error.c +++ b/error.c @@ -2470,7 +2470,6 @@ rb_sys_enc_warning(rb_encoding *enc, const char *fmt, ...) } } -#if 0 void rb_syserr_enc_warning(int err, rb_encoding *enc, const char *fmt, ...) { @@ -2480,7 +2479,6 @@ rb_syserr_enc_warning(int err, rb_encoding *enc, const char *fmt, ...) } } } -#endif void rb_load_fail(VALUE path, const char *err) -- cgit v1.2.3