[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: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2004-09-14 17:42:00 CEST

On Tue, 13 Sep 2004 kfogel@collab.net wrote:

> 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?
>
r10954.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 14 20:31:57 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.