MCPcopy Create free account
hub / github.com/apache/httpd / dav_fs_is_writable

Function dav_fs_is_writable

modules/dav/fs/repos.c:2078–2091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2076}
2077
2078static int dav_fs_is_writable(const dav_resource *resource, int propid)
2079{
2080 const dav_liveprop_spec *info;
2081
2082#ifdef DAV_FS_HAS_EXECUTABLE
2083 /* if we have the executable property, and this isn't a collection,
2084 then the property is writable. */
2085 if (propid == DAV_PROPID_FS_executable && !resource->collection)
2086 return 1;
2087#endif
2088
2089 (void) dav_get_liveprop_info(propid, &dav_fs_liveprop_group, &info);
2090 return info->is_writable;
2091}
2092
2093static dav_error *dav_fs_patch_validate(const dav_resource *resource,
2094 const apr_xml_elem *elem,

Callers

nothing calls this directly

Calls 1

dav_get_liveprop_infoFunction · 0.85

Tested by

no test coverage detected