aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 7f35d79..3fa7717 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -876,8 +876,8 @@ static int mkdirp(lua_State* L, char* path, int len) {
lua_pop(L, 1);
#else
if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) && errno != EEXIST)
- #endif
return -1;
+ #endif
path[i] = '/';
}
}