From f17792721e8f49337747b7d107c6c42513685835 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 1 Dec 2022 22:53:56 -0600 Subject: Use the os temp directory Use the operating system's temporary directory instead of trying to use the local file system's. --- src/opt_parser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/opt_parser.lua b/src/opt_parser.lua index 5c3b28d..a442ef8 100644 --- a/src/opt_parser.lua +++ b/src/opt_parser.lua @@ -105,7 +105,7 @@ ret.check_file = function(path) end ret.check_executable = function(name) - local tmpname = "./" .. os.tmpname() + local tmpname = os.tmpname() -- Each os has a differnt place it makes tmp file, don't modify it. local pd = assert(io.popen(name .. " > " .. tmpname, "w")) pd:write("Hello, world!") pd:close() -- cgit v1.2.3-70-g09d2