mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
~/.pry_history should not be world-readable
This commit is contained in:
parent
1414c94b26
commit
d1e2c7f0ae
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Pry
|
|||
if defined?(@history_file)
|
||||
@history_file
|
||||
else
|
||||
@history_file = File.open(file_path, 'a').tap { |f| f.sync = true }
|
||||
@history_file = File.open(file_path, 'a', 0600).tap { |f| f.sync = true }
|
||||
end
|
||||
rescue Errno::EACCES
|
||||
warn 'History not saved; unable to open your history file for writing.'
|
||||
|
|
Loading…
Reference in a new issue