Upload files to "/"

This commit is contained in:
doesnm 2024-01-26 21:36:02 +01:00
parent 50aaeca4af
commit ee577ff7be

View file

@ -125,7 +125,7 @@ end
if not validate(dataBuf,from,to) then print("250 NOTOK") if not validate(dataBuf,from,to) then print("250 NOTOK")
data = false else data = false else
name = os.time() .. "." .. _G["posix.unistd"].getpid() .. "." .. os.execute("hostname") name = os.time() .. "." .. _G["posix.unistd"].getpid() .. "." .. io.popen("hostname"):read("line")
ptf = dir .. "/tmp/" .. name ptf = dir .. "/tmp/" .. name
out = io.open(ptf,"w") out = io.open(ptf,"w")
out:write("From " .. from .." ".. os.date("%a %b %d %H:%M:%S %Y") .. "\n") out:write("From " .. from .." ".. os.date("%a %b %d %H:%M:%S %Y") .. "\n")