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

Re: [PATCH] But with trailing slashes in SVNPath command in httpd.conf

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-09-04 21:58:57 CEST

Philip Martin wrote:

>Ben Collins-Sussman <sussman@collab.net> writes:
>
>
>
>>Justin Clift <justin@postgresql.org> writes:
>>
>>
>>
>>>This works:
>>>
>>><Location /foob>
>>> DAV svn
>>> SVNPath /usr/local/www/repos
>>></Location>
>>>
>>>
>>>This generates an error:
>>>
>>><Location /foob>
>>> DAV svn
>>> SVNPath /usr/local/www/repos
>>></Location>
>>>
>>>
>>A bug in the bug report. The failing block looks like this:
>>
>> SVNPath /usr/local/www/repos/
>>
>>
>
>I don't know much about mod_dav_svn, but this works for me. Does it
>look OK?
>

Looks fine to me.

>* subversion/mod_dav_svn/mod_dav_svn.c
> (dav_svn_get_fs_path, dav_svn_get_fs_parent_path): Canonicalize paths.
>
>
>
>Index: ../svn/subversion/mod_dav_svn/mod_dav_svn.c
>===================================================================
>--- ../svn/subversion/mod_dav_svn/mod_dav_svn.c
>+++ ../svn/subversion/mod_dav_svn/mod_dav_svn.c Wed Sep 4 20:44:33 2002
>@@ -210,7 +210,9 @@
> dav_svn_dir_conf *conf;
>
> conf = ap_get_module_config(r->per_dir_config, &dav_svn_module);
>- return conf->fs_path;
>+ return (conf->fs_path
>+ ? svn_path_canonicalize_nts (conf->fs_path, r->pool)
>+ : NULL);
> }
>

Is there reason why svn_path_canonicalize_nts shouldnt accept a NULL
path and return NULL?

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 4 22:00:31 2002

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.