add a uid suffix to state_file

parent 2416f47e
uid-suffix-to-state-file.patch
remove-bin-commands.patch
version-fix.patch
require-mocha-setup.patch
Index: ruby-uuid/lib/uuid.rb
===================================================================
--- ruby-uuid.orig/lib/uuid.rb
+++ ruby-uuid/lib/uuid.rb
@@ -173,7 +173,7 @@ class UUID
state_dir = Dir.tmpdir
end
- @state_file = File.join(state_dir, 'ruby-uuid')
+ @state_file = File.join(state_dir, 'ruby-uuid'+Process.uid.to_s)
if !File.writable?(state_dir) || (File.exists?(@state_file) && !File.writable?(@state_file)) then
@state_file = File.expand_path('.ruby-uuid', '~')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment