Roxen.git/
server/
modules/
filesystems/
filesystem.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-15
2004-05-15 10:44:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>
9040d5def2458921a2f5307d89242154ae1f73d8 (
15
lines) (+
8
/-
7
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed bug in unlock_file().
Fixed some debug.
Rev: server/modules/filesystems/filesystem.pike:1.146
7:
inherit "module"; inherit "socket";
-
constant cvs_version= "$Id: filesystem.pike,v 1.
145
2004/05/
14
21
:
21
:
22
mast
Exp $";
+
constant cvs_version= "$Id: filesystem.pike,v 1.
146
2004/05/
15
10
:
44
:
08
grubba
Exp $";
constant thread_safe=1; #include <module.h>
399:
mapping(string:mixed) lock_file(string path, DAVLock lock, RequestID id) { if (!query("put")) return 0;
-
if(query("check_auth") &&
(!id->conf->authenticate( id )
) ) {
-
TRACE_LEAVE("
PUT
: Permission denied");
+
if
(query("check_auth") && (!id->conf->authenticate( id )) ) {
+
TRACE_LEAVE("
LOCK
: Permission denied");
return // FIXME: Sane realm. Roxen.http_auth_required("foo",
-
"<h1>Permission to '
PUT
' files denied</h1>");
+
"<h1>Permission to '
LOCK
' files denied</h1>");
} register_lock(path, lock, id); return 0;
413:
mapping(string:mixed) unlock_file(string path, DAVLock lock, RequestID|int(0..0) id) { if (!query("put")) return 0;
-
if(query("check_auth") && (!id
|| (!id
->conf->authenticate( id )
)
)
) {
-
TRACE_LEAVE("
PUT
: Permission denied");
+
if
(
id &&
query("check_auth") && (!id->conf->authenticate( id )) ) {
+
TRACE_LEAVE("
UNLOCK
: Permission denied");
return // FIXME: Sane realm. Roxen.http_auth_required("foo",
-
"<h1>Permission to '
PUT
' files denied</h1>");
+
"<h1>Permission to '
UNLOCK
' files denied</h1>");
} unregister_lock(path, lock, id); return 0;