Bug #7694 ยป irb-save-history.patch
| lib/irb/ext/save-history.rb | ||
|---|---|---|
|
# Change the permission of a file that already exists[BUG #7694]
|
||
|
begin
|
||
|
if File.stat(history_file).mode & 066
|
||
|
if File.stat(history_file).mode & 066 != 0
|
||
|
File.chmod(0600, history_file)
|
||
|
end
|
||
|
rescue Errno::ENOENT
|
||