Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.571 2004/05/07 19:45:49 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.572 2004/05/10 17:16:06 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:1467:   {    // Canonicalize path.    if (!has_suffix(path, "/")) path+="/";       // First check if there's already some lock on path that prevents    // us from locking it.    int/*LockFlag*/|DAVLock lock_info = check_locks(path, recursive, id);       if (!intp(lock_info)) {    // We already hold a lock that prevents us. +  if (id->request_headers->if) {    return Roxen.http_status(412, "Precondition Failed"); -  +  } else { +  return Roxen.http_status(423, "Locked"); +  }    } else if (lockscope == "DAV:exclusive" ?    lock_info >= LOCK_SHARED_BELOW :    lock_info >= LOCK_OWN_BELOW) {    // Some other lock prevents us.    return Roxen.http_status(423, "Locked");    }       // Create the new lock.       string locktoken = "opaquelocktoken:" + roxen->new_uuid_string();