Branch: Tag:

2003-06-16

2003-06-16 16:07:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for the property "http://apache.org/dav/props/executable", as documented by http://www.webdav.org/mod_dav/.

Rev: server/base_server/module.pike:1.138

1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: module.pike,v 1.137 2003/06/16 15:35:11 grubba Exp $ + // $Id: module.pike,v 1.138 2003/06/16 16:07:25 grubba Exp $      #include <module_constants.h>   #include <module.h>
313:    res += (<    "DAV:getcontentlength", // 13.4    "DAV:getcontenttype", // 13.5 +  "http://apache.org/dav/props/executable",    >);    }    return res;
355:    "DAV:collection") }); // 12.2    }    return ""; +  case "http://apache.org/dav/props/executable": +  // http://www.webdav.org/mod_dav/: +  // +  // Name: executable +  // Namespace: http://apache.org/dav/props/ +  // Purpose: Describes the executable status of the resource. +  // Value: "T" | "F" (case is significant) +  // Description: This property is defined by mod_dav's default +  // repository, the "filesystem" repository. It +  // corresponds to the "executable" permission flag +  // in most filesystems. +  // +  // This property is not defined on collections. +  if (st->isreg) { +  if (o->mode & 0111) return "T"; +  return "F"; +  } +  break;    default:    break;    }
390:    RequestID id)   {    switch(prop_name) { +  case "http://apache.org/dav/props/executable": +  // FIXME: Could probably be implemented R/W. +  // FALL_THROUGH    case "DAV:creationdate": // 13.1    case "DAV:displayname": // 13.2    case "DAV:getcontentlength": // 13.4