aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-03 22:17:56 +0800
committertakase1121 <20792268+takase1121@users.noreply.github.com>2024-12-03 22:17:56 +0800
commitde9ec6ceeaec8d10e072ae679b02182e13a743c4 (patch)
tree3b037de2bb2270148dc5a4abae5666b3930a2902
parentf56a2fa93d726d9251b92f9ed083e0c7b2af9ab4 (diff)
downloadlite-xl-plugin-manager-de9ec6ceeaec8d10e072ae679b02182e13a743c4.tar.gz
lite-xl-plugin-manager-de9ec6ceeaec8d10e072ae679b02182e13a743c4.zip
lpm.c: fix mkdirp failing prematurely
-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] = '/';
}
}