diff options
-rw-r--r-- | src/luarocks/fs/unix/tools.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua index 31d8f0ca..f99582bd 100644 --- a/src/luarocks/fs/unix/tools.lua +++ b/src/luarocks/fs/unix/tools.lua | |||
@@ -214,6 +214,9 @@ do | |||
214 | local umask = assert(fd:read("*a")) | 214 | local umask = assert(fd:read("*a")) |
215 | fd:close() | 215 | fd:close() |
216 | local u, g, o = umask:match("u=([rwx]*),g=([rwx]*),o=([rwx]*)") | 216 | local u, g, o = umask:match("u=([rwx]*),g=([rwx]*),o=([rwx]*)") |
217 | if not u then | ||
218 | error("invalid umask result") | ||
219 | end | ||
217 | umask_cache = string.format("%d%d%d", | 220 | umask_cache = string.format("%d%d%d", |
218 | 7 - rwx_to_octal(u), | 221 | 7 - rwx_to_octal(u), |
219 | 7 - rwx_to_octal(g), | 222 | 7 - rwx_to_octal(g), |