aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-27 14:57:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-27 14:57:08 +0000
commit6b18457d1505f0a432b3d9c1dbd20a4687b46978 (patch)
tree0ea47ac8133bcbb865366ece9ede57ee4f8d1a7a /error.c
parent6170012d35a353c0840fbe91f316e3aa9e115b00 (diff)
downloadruby-6b18457d1505f0a432b3d9c1dbd20a4687b46978.tar.gz
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
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 0 insertions, 2 deletions
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)