--- embedaddon/lighttpd/src/mod_userdir.c 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/src/mod_userdir.c 2014/06/15 20:20:06 1.1.1.2 @@ -96,7 +96,7 @@ SETDEFAULTS_FUNC(mod_userdir_set_defaults) { if (!p) return HANDLER_ERROR; - p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *)); + p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *)); for (i = 0; i < srv->config_context->used; i++) { plugin_config *s; @@ -292,6 +292,8 @@ URIHANDLER_FUNC(mod_userdir_docroot_handler) { return HANDLER_GO_ON; } } + + buffer_copy_string_buffer(con->physical.basedir, p->temp_path); /* the physical rel_path is basically the same as uri.path; * but it is converted to lowercase in case of force_lowercase_filenames and some special handling