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

Re: [PATCH] docstrings on apr_filepath_merge() flags?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-07-18 23:00:34 CEST

"William A. Rowe, Jr." <wrowe@rowe-clan.net> writes:

> At 02:47 PM 7/18/2002, Ben Collins-Sussman wrote:
>
> >I've got a path as a command-line argument, and I'm trying to convert
> >it to canonical case using apr_filepath_merge:
> >
> > apr_err = apr_filepath_merge (&truenamed_target, NULL, raw_target,
> > APR_FILEPATH_TRUENAME, pool);
> >
> >Unfortunately, this had the side-effect of converting a relative path
> >into an absolute path.
>
> Per the apr_filepath_merge docs [and if it's not there, it needs to be],
> passing a rootpath of NULL == the cwd. Passing a rootpath of ""
> (empty) means merge raw_target to an empty path.
>
> Please try passing "" to the root path (meaning, merge the path to
> no characters) and see if that solves your problem.

Ah! That did it! Problem all fixed, the exact behavior I wanted.

Sorry for not reading the docs more closely. Hmmm. Actually, the
docs only mention the option of setting rootpath to NULL, not "".

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 18 23:03:08 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.