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

Re: [PATCH] fix for issue #2556: support working copies on the root of a (virtual) drive

From: Branko Čibej <brane_at_xbc.nu>
Date: 2006-08-19 09:47:45 CEST

Lieven Govaerts wrote:
> +int
> +svn_path_is_root(const char *path)
> +{
> +#if defined(WIN32)
> + /* On Windows, X:/ is a root path! */
> + if (path[1] == ':' && path[2] == '/' && path[3] == 0)
> + return 1;
> +#endif /* WIN32 */
>
> + return path[0] == '/' && path[1] == 0;
> +}
> +
>

Why don't you just use apr_filepath_root here and everywhere else where
this matters?

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 19 09:48:09 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.