Skip to content

Commit

Permalink
~/.pry_history should not be world-readable
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed May 26, 2013
1 parent 1414c94 commit d1e2c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pry/history.rb
Expand Up @@ -103,7 +103,7 @@ def history_file
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.'
Expand Down

0 comments on commit d1e2c7f

Please sign in to comment.