Branch: Tag:

2018-03-20

2018-03-20 11:53:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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");