aboutsummaryrefslogtreecommitdiff
path: root/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpm.c')
-rw-r--r--lpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lpm.c b/lpm.c
index 02d1c3d..b58edf3 100644
--- a/lpm.c
+++ b/lpm.c
@@ -66,8 +66,8 @@ int lpm_symlink(lua_State* L) {
}
int lpm_chmod(lua_State* L) {
- if (chmod(luaL_checkstring(L, 1)), luaL_checkinteger(L, 2))
- return luaL_error(L, "can't chmod %s: %s", luaL_checkstring(L, 1), strerror(errno))
+ if (chmod(luaL_checkstring(L, 1), luaL_checkinteger(L, 2)))
+ return luaL_error(L, "can't chmod %s: %s", luaL_checkstring(L, 1), strerror(errno));
return 0;
}