mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-14 19:59:48 +00:00
update random name
This commit is contained in:
3
z.lua
3
z.lua
@@ -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