aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fs/lua.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index 67c3ce0f..09175758 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
@@ -247,7 +247,7 @@ function copy(src, dest, perms)
247 if not perms then perms = fs.get_permissions(src) end 247 if not perms then perms = fs.get_permissions(src) end
248 local src_h, err = io.open(src, "rb") 248 local src_h, err = io.open(src, "rb")
249 if not src_h then return nil, err end 249 if not src_h then return nil, err end
250 local dest_h, err = io.open(dest, "wb+") 250 local dest_h, err = io.open(dest, "w+b")
251 if not dest_h then src_h:close() return nil, err end 251 if not dest_h then src_h:close() return nil, err end
252 while true do 252 while true do
253 local block = src_h:read(8192) 253 local block = src_h:read(8192)