Roxen.git/
server/
base_server/
module.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-06
2004-05-06 15:32:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>
9de7f7934218912bff13775c657ea479215ccb91 (
11
lines) (+
7
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
unlock_file() is now more robust.
Rev: server/base_server/module.pike:1.180
1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2001, Roxen IS.
-
// $Id: module.pike,v 1.
179
2004/05/
05
21
:
17
:
56
mast
Exp $
+
// $Id: module.pike,v 1.
180
2004/05/
06
15
:
32
:
55
grubba
Exp $
#include <module_constants.h> #include <module.h>
935:
path = resource_id (path, id); DAVLock removed_lock; if (lock->recursive) {
-
removed_lock = m_delete
(prefix_locks[path], auth_user);
-
if (!sizeof
(prefix_locks[path])) m_delete
(prefix_locks, path);
+
if (prefix_locks[path]) {
+
removed_lock = m_delete(prefix_locks[path], auth_user);
+
if (!sizeof(prefix_locks[path])) m_delete(prefix_locks, path);
}
-
else {
+
}
+
else
if (file_locks[path])
{
removed_lock = m_delete (file_locks[path], auth_user); if (!sizeof (file_locks[path])) m_delete (file_locks, path); }