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

Re: svn commit: r10939 - trunk/subversion/svnserve

From: <kfogel_at_collab.net>
Date: 2004-09-14 02:09:21 CEST

lundblad@tigris.org writes:
> --- trunk/subversion/svnserve/serve.c (original)
> +++ trunk/subversion/svnserve/serve.c Mon Sep 13 15:04:53 2004
> @@ -1162,8 +1162,15 @@
> ++path;
>
> /* Check for '..'. */
> +#if WIN32
> + /* On Windows, don't allow sequences of more than one character
> + consisting of just dots and spaces. */
> + if (path - s >= 2 && strspn(s, ". ") == path - s)
> + return FALSE;
> +#else /* ! WIN32 */
> if (path - s == 2 && s[0] == '.' && s[1] == '.')
> return FALSE;
> +#endif

Could the comment maybe explain why this is desirable?

Thanks,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 14 03:51:58 2004

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.