summaryrefslogtreecommitdiffstats
path: root/modules/dav/fs/lock.c
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2002-01-25 00:11:27 +0100
committerGreg Stein <gstein@apache.org>2002-01-25 00:11:27 +0100
commita3a951a57625b39c7bba1b6c4b34141a033e26b1 (patch)
tree024b5921e16d7d92bfdf04fa3260ee74a61bdc69 /modules/dav/fs/lock.c
parentNever got rolled, problems with daedalus' thundering herd poll (among (diff)
downloadapache2-a3a951a57625b39c7bba1b6c4b34141a033e26b1.tar.xz
apache2-a3a951a57625b39c7bba1b6c4b34141a033e26b1.zip
Some extra tweaks to the DAV code file/path handling (to continue the
platforms fixes done by wrowe). * dav_fs_get_parent_resource(): return NULL if we're at the root of the URL (Location) space. * dav_fs_dir_file_name(): make it return an error, in case we're passed a bad path. adjusted callers [who just ignore it for now] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93009 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/dav/fs/lock.c')
-rw-r--r--modules/dav/fs/lock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/dav/fs/lock.c b/modules/dav/fs/lock.c
index bfc37c2831..1d1c88c7b4 100644
--- a/modules/dav/fs/lock.c
+++ b/modules/dav/fs/lock.c
@@ -992,7 +992,8 @@ dav_error * dav_fs_get_locknull_members(
{
const char *dirpath;
- dav_fs_dir_file_name(resource, &dirpath, NULL);
+ /* ### should test this result value... */
+ (void) dav_fs_dir_file_name(resource, &dirpath, NULL);
return dav_fs_load_locknull_list(dav_fs_pool(resource), dirpath, pbuf);
}
@@ -1008,7 +1009,8 @@ static dav_error * dav_fs_add_locknull_state(
const char *fname;
dav_error *err;
- dav_fs_dir_file_name(resource, &dirpath, &fname);
+ /* ### should test this result value... */
+ (void) dav_fs_dir_file_name(resource, &dirpath, &fname);
if ((err = dav_fs_load_locknull_list(p, dirpath, &buf)) != NULL) {
return dav_push_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,