fs-wrap.c (251886) | fs-wrap.c (253734) |
---|---|
1/* fs-wrap.c --- filesystem interface wrappers. 2 * 3 * ==================================================================== 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the --- 158 unchanged lines hidden (view full) --- 167 168svn_error_t * 169svn_repos__validate_prop(const char *name, 170 const svn_string_t *value, 171 apr_pool_t *pool) 172{ 173 svn_prop_kind_t kind = svn_property_kind2(name); 174 | 1/* fs-wrap.c --- filesystem interface wrappers. 2 * 3 * ==================================================================== 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the --- 158 unchanged lines hidden (view full) --- 167 168svn_error_t * 169svn_repos__validate_prop(const char *name, 170 const svn_string_t *value, 171 apr_pool_t *pool) 172{ 173 svn_prop_kind_t kind = svn_property_kind2(name); 174 |
175 /* Allow deleting any property, even a property we don't allow to set. */ 176 if (value == NULL) 177 return SVN_NO_ERROR; 178 |
|
175 /* Disallow setting non-regular properties. */ 176 if (kind != svn_prop_regular_kind) 177 return svn_error_createf 178 (SVN_ERR_REPOS_BAD_ARGS, NULL, 179 _("Storage of non-regular property '%s' is disallowed through the " 180 "repository interface, and could indicate a bug in your client"), 181 name); 182 --- 662 unchanged lines hidden --- | 179 /* Disallow setting non-regular properties. */ 180 if (kind != svn_prop_regular_kind) 181 return svn_error_createf 182 (SVN_ERR_REPOS_BAD_ARGS, NULL, 183 _("Storage of non-regular property '%s' is disallowed through the " 184 "repository interface, and could indicate a bug in your client"), 185 name); 186 --- 662 unchanged lines hidden --- |