Roxen.git/
server/
modules/
filesystems/
filesystem.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2018-03-20
2018-03-20 11:53:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>
d79f270e146e306f8bc266b049b2d2e59996a074 (
12
lines) (+
11
/-
1
)
[
Show
|
Annotate
]
Branch:
d79f270e146e306f8bc266b049b2d2e59996a074
Filesystem: Fixed I/O error on PUT to directory.
Fixes
[WS-230]
.
7:
inherit "module"; inherit "socket";
-
constant cvs_version= "
$Id: filesystem.pike,v 1.161 2010/06/29 13:30:31 grubba Exp $
";
+
constant cvs_version= "
$Id$
";
constant thread_safe=1; #include <module.h>
1081:
return ret; }
+
if (size == -2) {
+
// RFC 4918 9.7.2:
+
// A PUT request to an existing collection MAY be treated as an
+
// error (405 Method Not Allowed).
+
id->misc->error_code = 405;
+
TRACE_LEAVE("PUT: Is directory.");
+
return 0;
+
}
+
puts++; QUOTA_WERR("Checking quota.\n");