Skip to content

Commit 755128c

Browse files
committed
merge revision(s) r45720: [Backport ruby#9571]
* lib/fileutils.rb (rmdir): rescue Errno::EEXIST in addition to ENOTEMPTY (and ENOENT), because SUSv3 describes that "If the directory is not an empty directory, rmdir() shall fail and set errno to [EEXIST] or [ENOTEMPTY]" and Solaris uses EEXIST. [Bug ruby#9571] [ruby-dev:48017] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent e7edc10 commit 755128c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Wed Jul 23 22:51:34 2014 Naohisa Goto <[email protected]>
2+
3+
* lib/fileutils.rb (rmdir): rescue Errno::EEXIST in addition to
4+
ENOTEMPTY (and ENOENT), because SUSv3 describes that "If the
5+
directory is not an empty directory, rmdir() shall fail and set
6+
errno to [EEXIST] or [ENOTEMPTY]" and Solaris uses EEXIST.
7+
[Bug #9571] [ruby-dev:48017]
8+
19
Wed Jul 23 22:43:50 2014 Tanaka Akira <[email protected]>
210

311
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which

lib/fileutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def rmdir(list, options = {})
277277
Dir.rmdir(dir)
278278
end
279279
end
280-
rescue Errno::ENOTEMPTY, Errno::ENOENT
280+
rescue Errno::ENOTEMPTY, Errno::EEXIST, Errno::ENOENT
281281
end
282282
end
283283
end

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.2"
22
#define RUBY_RELEASE_DATE "2014-07-23"
3-
#define RUBY_PATCHLEVEL 178
3+
#define RUBY_PATCHLEVEL 179
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 7

0 commit comments

Comments
 (0)