diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-06-24 11:13:09 -0700 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-07-27 16:56:04 +0900 |
commit | a06301b103371b0b7da8eaca26ba744961769f99 (patch) | |
tree | aca67dc485d53326306758872df9d3e79d23a2fd /lib/irb/ext | |
parent | f9f02e82166643c1e12f10ac51a0d367ee26ac31 (diff) |
Ignore history file without saving if permissions cannot be changed
Fixes [Ruby Bug 13907]
Diffstat (limited to 'lib/irb/ext')
-rw-r--r-- | lib/irb/ext/save-history.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index 57ba7c1c53..37393dfb36 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -101,6 +101,8 @@ module IRB File.chmod(0600, history_file) end rescue Errno::ENOENT + rescue Errno::EPERM + return rescue raise end |