[ruby-cvs:65327] nobu:r58156 (trunk): dir.c: err at glob failure

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Mar 27 23:57:08 JST 2017


nobu	2017-03-27 23:57:08 +0900 (Mon, 27 Mar 2017)

  New Revision: 58156

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58156

  Log:
    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

  Modified files:
    trunk/dir.c
    trunk/error.c
    trunk/test/ruby/test_dir.rb


More information about the ruby-cvs mailing list