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

Re: CVS update: subversion/subversion/libsvn_subr target.c

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-02-13 20:37:31 CET

Pete,

This, together with the small change I made afterwords should mean that
you can get rid of your local #define PATH_MAX as soon as you update APR
and subversion.

On Tue, Feb 13, 2001 at 07:31:32PM -0000, kevin@tigris.org wrote:
> User: kevin
> Date: 01/02/13 11:31:32
>
> Modified: subversion/libsvn_subr target.c
> Log:
> Changed to use the new APR_PATH_MAX define, instead of the local system
> version for portability reasons.
>
> Revision Changes Path
> 1.2 +1 -2 subversion/subversion/libsvn_subr/target.c
>
> Index: target.c
> ===================================================================
> RCS file: /cvs/subversion/subversion/libsvn_subr/target.c,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -r1.1 -r1.2
> --- target.c 2001/02/12 18:00:27 1.1
> +++ target.c 2001/02/13 19:31:32 1.2
> @@ -32,8 +32,8 @@
> const svn_string_t *relative,
> apr_pool_t *pool)
> {
> + char buffer[APR_PATH_MAX];
> #ifdef WIN32
> - char buffer[_MAX_PATH];
> if (_fullpath(buffer, relative->data, _MAX_PATH) != NULL)
> {
> *pabsolute = svn_string_create(buffer, pool);
> @@ -47,7 +47,6 @@
> "path of %s", relative->data);
> }
> #else
> - char buffer[PATH_MAX];
> if (realpath(relative->data, buffer) != NULL)
> {
> *pabsolute = svn_string_create(buffer, pool);
>
>
>
> ____________________________________________________________
> Get your free domain name and domain-based e-mail from
> Namezero.com. New! Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:22 2006

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.