summaryrefslogtreecommitdiffstats
path: root/modules/dav
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2000-10-06 21:45:52 +0200
committerGreg Stein <gstein@apache.org>2000-10-06 21:45:52 +0200
commitb8a5407a3d0318d4080415e5b690a924e593e5d8 (patch)
treee330ee7553e699ba3ae8143075045c32f8046cad /modules/dav
parent Back out or finish up a few non-apr tests. Won't touch proxy at this (diff)
downloadapache2-b8a5407a3d0318d4080415e5b690a924e593e5d8.tar.xz
apache2-b8a5407a3d0318d4080415e5b690a924e593e5d8.zip
recent changes bungled the state of the EEXIST test.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86419 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav')
-rw-r--r--modules/dav/fs/repos.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c
index b00a86c6db..36cc1927c0 100644
--- a/modules/dav/fs/repos.c
+++ b/modules/dav/fs/repos.c
@@ -402,7 +402,7 @@ static dav_error * dav_fs_copymove_state(
/* ensure that it exists */
rv = apr_make_dir(dst, APR_OS_DEFAULT, p);
if (rv != APR_SUCCESS) {
- if (APR_STATUS_IS_EEXIST(rv)) {
+ if (!APR_STATUS_IS_EEXIST(rv)) {
/* ### use something besides 500? */
return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,
"Could not create internal state directory");
@@ -557,7 +557,9 @@ static dav_error *dav_fs_deleteset(apr_pool_t *p, const dav_resource *resource)
static dav_resource * dav_fs_get_resource(
request_rec *r,
const char *root_dir,
- const char *workspace)
+ const char *workspace,
+ const char *target,
+ int is_label)
{
dav_resource_private *ctx;
dav_resource *resource;
@@ -881,20 +883,20 @@ static void dav_fs_free_file(void *free_handle)
/* nothing to free ... */
}
-static dav_error * dav_fs_create_collection(apr_pool_t *p, dav_resource *resource)
+static dav_error * dav_fs_create_collection(dav_resource *resource)
{
dav_resource_private *ctx = resource->info;
apr_status_t status;
- status = apr_make_dir(ctx->pathname, APR_OS_DEFAULT, p);
+ status = apr_make_dir(ctx->pathname, APR_OS_DEFAULT, ctx->pool);
if (status == ENOSPC) {
- return dav_new_error(p, HTTP_INSUFFICIENT_STORAGE, 0,
+ return dav_new_error(ctx->pool, HTTP_INSUFFICIENT_STORAGE, 0,
"There is not enough storage to create "
"this collection.");
}
else if (status != APR_SUCCESS) {
/* ### refine this error message? */
- return dav_new_error(p, HTTP_FORBIDDEN, 0,
+ return dav_new_error(ctx->pool, HTTP_FORBIDDEN, 0,
"Unable to create collection.");
}