125 // TODO: statpath and staterror |
125 // TODO: statpath and staterror |
126 rq->finfo = s; |
126 rq->finfo = s; |
127 return s; |
127 return s; |
128 } |
128 } |
129 |
129 |
130 int request_set_path(sstr_t root, sstr_t path, pblock *vars) { |
130 int request_set_path(cxstring root, cxstring path, pblock *vars) { |
131 // TODO: maybe replace this code with request_set_path from req.cpp |
131 // TODO: maybe replace this code with request_set_path from req.cpp |
132 |
132 |
133 // concat path |
133 // concat path |
134 size_t length = root.length + path.length; |
134 size_t length = root.length + path.length; |
135 char *translated_path = alloca(length + 1); |
135 char *translated_path = alloca(length + 1); |