Skip to content

Commit

Permalink
lpm.c: fix mkdirp failing prematurely
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Dec 3, 2024
1 parent f56a2fa commit de9ec6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] = '/';
}
}
Expand Down

0 comments on commit de9ec6c

Please sign in to comment.