fsctx->res2.collection = 0;
/* open and scan the directory */
- if ((apr_opendir(&dirp, fsctx->path1.buf, pool)) != APR_SUCCESS) {
+ if ((apr_dir_open(&dirp, fsctx->path1.buf, pool)) != APR_SUCCESS) {
/* ### need a better error */
return dav_new_error(pool, HTTP_NOT_FOUND, 0, NULL);
}
char keyid;
char direction;
- if ((status = apr_opendir(&d, name, r->pool)) != APR_SUCCESS) {
+ if ((status = apr_dir_open(&d, name, r->pool)) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
"Can't open directory for index: %s", r->filename);
return HTTP_FORBIDDEN;
++filp;
prefix_len = strlen(filp);
- if ((status = apr_opendir(&dirp, neg->dir_name, neg->pool)) != APR_SUCCESS) {
+ if ((status = apr_dir_open(&dirp, neg->dir_name, neg->pool)) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
"cannot read directory for multi: %s", neg->dir_name);
return HTTP_FORBIDDEN;
url = apr_pstrndup(r->pool, r->uri, (urlen - pglen));
/* Now open the directory and do ourselves a check... */
- if (apr_opendir(&dir, good, r->pool) != APR_SUCCESS) {
+ if (apr_dir_open(&dir, good, r->pool) != APR_SUCCESS) {
/* Oops, not a directory... */
return DECLINED;
}
char keyid;
char direction;
- if ((status = apr_opendir(&d, name, r->pool)) != APR_SUCCESS) {
+ if ((status = apr_dir_open(&d, name, r->pool)) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
"Can't open directory for index: %s", r->filename);
return HTTP_FORBIDDEN;
* for this.
*/
fprintf(stderr, "Processing config directory: %s\n", fname);
- if (apr_opendir(&dirp, fname, p) != APR_SUCCESS) {
+ if (apr_dir_open(&dirp, fname, p) != APR_SUCCESS) {
perror("fopen");
fprintf(stderr, "%s: could not open config directory %s\n",
ap_server_argv0, fname);