Branch: Tag:

2018-02-01

2018-02-01 15:50:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

WebDAV: Extended API for find_locks().

A recursion value of -1 now causes find_locks() to only list
locks that are rooted at path or below, but not any above.
This can be used to find the locks to be invalidated if the
specified path were to be deleted.

Fixes some of [WS-160].

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.667 2009/02/24 16:48:43 mast Exp $"; + constant cvs_version = "$Id$";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1732:   }      //! Find all applicable locks for this user on @[path]. - multiset(DAVLock) find_locks(string path, int(0..1) recursive, + multiset(DAVLock) find_locks(string path, int(-1..1) recursive,    int(0..1) exclude_shared, RequestID id)   {    SIMPLE_TRACE_ENTER(0, "find_locks(%O, %O, %O, X)",