Changeset 2059
- Timestamp:
- 01/18/2008 12:53:45 PM (4 months ago)
- Files:
-
- trunk/NEWS (modified) (1 diff)
- trunk/src/mod_userdir.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/NEWS
r2046 r2059 14 14 * ssl.cipher-list and ssl.use-sslv2 ported from 1.4.x (#1422) 15 15 * add IdleServers and Scoreboard directives in ?auto mode for mod_status (#1507) 16 * support letterhomes in mod_userdir (#1473) 16 17 17 18 - 1.5.0-r19.. - trunk/src/mod_userdir.c
r1466 r2059 23 23 buffer *path; 24 24 buffer *basepath; 25 unsigned short letterhomes; 25 26 } plugin_config; 26 27 … … 91 92 { "userdir.include-user", NULL, T_CONFIG_ARRAY, T_CONFIG_SCOPE_CONNECTION }, /* 2 */ 92 93 { "userdir.basepath", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, /* 3 */ 94 { "userdir.letterhomes", NULL, T_CONFIG_BOOLEAN,T_CONFIG_SCOPE_CONNECTION }, /* 4 */ 93 95 { NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET } 94 96 }; … … 106 108 s->path = buffer_init(); 107 109 s->basepath = buffer_init(); 110 s->letterhomes = 0; 108 111 109 112 cv[0].destination = s->path; … … 111 114 cv[2].destination = s->include_user; 112 115 cv[3].destination = s->basepath; 116 cv[4].destination = &(s->letterhomes); 113 117 114 118 p->config_storage[i] = s; … … 130 134 PATCH_OPTION(include_user); 131 135 PATCH_OPTION(basepath); 136 PATCH_OPTION(letterhomes); 132 137 133 138 /* skip the first, the global context */ … … 151 156 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("userdir.basepath"))) { 152 157 PATCH_OPTION(basepath); 158 } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("userdir.letterhomes"))) { 159 PATCH_OPTION(letterhomes); 153 160 } 154 161 } … … 254 261 buffer_copy_string_buffer(p->temp_path, p->conf.basepath); 255 262 PATHNAME_APPEND_SLASH(p->temp_path); 263 if (p->conf.letterhomes) { 264 buffer_append_string_len(p->temp_path, p->username->ptr, 1); 265 PATHNAME_APPEND_SLASH(p->temp_path); 266 } 256 267 buffer_append_string_buffer(p->temp_path, p->username); 257 268 }

