[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix for Issue #3781 repo prefix rules in authz section is checked case sensitively for commit

From: Arwin Arni <arwin_at_collab.net>
Date: Wed, 19 Jan 2011 21:22:38 +0530

Hi All,

Authz section names(and paths too) are parsed/loaded in a case
insensitive way.

So they need to be compared in a case-insensitive way.

Following functions do authz,

1. libsvn_repos/authz.c:authz_get_path_access()
2. libsvn_repos/authz.c:authz_get_any_access() is called when the "path"
is NULL (for MKACTIVITY, DELETE).

'1' is leaving it to svn_config_enumerate2() to handle case
(in)sensitiveness.
'2' is explicitly comparing each config item in a case sensitive way.

My patch is just fixing the '2' to check it in a case insensitive way.

Regards,
Arwin Arni

Received on 2011-01-19 16:53:16 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.