From ee577ff7be70521843253b249fa692f564b0189b Mon Sep 17 00:00:00 2001 From: doesnm Date: Fri, 26 Jan 2024 21:36:02 +0100 Subject: [PATCH] Upload files to "/" --- mail.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail.lua b/mail.lua index 6f630dd..69b0d20 100644 --- a/mail.lua +++ b/mail.lua @@ -125,7 +125,7 @@ end if not validate(dataBuf,from,to) then print("250 NOTOK") 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 out = io.open(ptf,"w") out:write("From " .. from .." ".. os.date("%a %b %d %H:%M:%S %Y") .. "\n")