mirror of
https://github.com/skywind3000/z.lua
synced 2026-10-14 13:21:41 +00:00
update random name
This commit is contained in:
@@ -614,7 +614,8 @@ function data_save(filename, M)
|
||||
tmpname = tmpname .. '' ..rnd
|
||||
end
|
||||
local sub = (os.tmpname()):sub(-6, -1):gsub('[\\/:~]', '')
|
||||
tmpname = tmpname .. sub
|
||||
local ppid = os.getenv('PPID')
|
||||
tmpname = tmpname .. sub .. (ppid and ppid or '')
|
||||
fp = io.open(tmpname, 'w')
|
||||
end
|
||||
if fp == nil then
|
||||
|
||||
Reference in New Issue
Block a user