Ignore history file without saving if permissions cannot be changed
Fixes [Ruby Bug 13907]
This commit is contained in:
parent
f9f02e8216
commit
a06301b103
@ -101,6 +101,8 @@ module IRB
|
||||
File.chmod(0600, history_file)
|
||||
end
|
||||
rescue Errno::ENOENT
|
||||
rescue Errno::EPERM
|
||||
return
|
||||
rescue
|
||||
raise
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user