aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/tools/zip.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/tools/zip.lua b/src/luarocks/tools/zip.lua
index 7534f097..35428d91 100644
--- a/src/luarocks/tools/zip.lua
+++ b/src/luarocks/tools/zip.lua
@@ -109,7 +109,7 @@ local function zipwriter_add(self, file)
109 if not ok then 109 if not ok then
110 err = "error in opening "..file.." in zipfile" 110 err = "error in opening "..file.." in zipfile"
111 else 111 else
112 fin = io.open(file, "rb") 112 fin = io.open(fs.absolute_name(file), "rb")
113 if not fin then 113 if not fin then
114 ok = false 114 ok = false
115 err = "error opening "..file.." for reading" 115 err = "error opening "..file.." for reading"
@@ -192,7 +192,7 @@ function new_zipwriter(name)
192 192
193 local zw = {} 193 local zw = {}
194 194
195 zw.ziphandle = io.open(name, "wb") 195 zw.ziphandle = io.open(fs.absolute_name(name), "wb")
196 if not zw.ziphandle then 196 if not zw.ziphandle then
197 return nil 197 return nil
198 end 198 end