Software /
code /
prosody-modules
Changeset
3661:88d414c916ee
mod_http_upload: Back out 3fb0add97cdb - depends on yet uncommon lfs version
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 30 Aug 2019 18:34:55 +0200 |
parents | 3660:11cd6e034fd3 |
children | 3662:a6c51f380777 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Fri Aug 30 13:28:30 2019 +0100 +++ b/mod_http_upload/mod_http_upload.lua Fri Aug 30 18:34:55 2019 +0200 @@ -104,12 +104,7 @@ local pending_slots = module:shared("upload_slots"); local storage_path = module:get_option_string(module.name .. "_path", join_path(prosody.paths.data, module.name)); - -do - local ok, err, errno = lfs.mkdir(storage_path); - -- 17 should be EEXIST, which is fine - assert(ok or errno == 17, "Storage path must be writable by Prosody\n"..err); -end +lfs.mkdir(storage_path); local function expire(username, host) if not max_age then return true; end