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

Re: [PATCH] Add bdb path option to gen-make for windows

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-09-25 00:29:12 CEST

Chris Foote wrote:

>Branko Čibej wrote:
>
>
>>Chris Foote wrote:
>>
>>
>>
>>>This patch allows the bdb headers and libs to be shared by multiple
>>>working copies on windows.
>>>
>>>
>>>
>[snip]
>
>
>>Looks fine, except ...
>>
>>
>>
>>>@@ -213,7 +222,10 @@
>>>
>>> result = [ ]
>>> for item in list:
>>>- result.append(rootpath + '\\' + item)
>>>+ if os.path.isabs(item):
>>>+ result.append(item)
>>>+ else:
>>>+ result.append(rootpath + '\\' + item)
>>> return result
>>>
>>>
>>I suspect slashes could creep into the absolute path here.
>>
>>
>>
>I don't see how?
>
>If the item path is absolute then it is just added to the result, and if it
>is relative then it is assumed to be a path from the rootpath.
>
>
In both cases, "item" can contain slashes. And on Unix, os.path.isabs
won't do the right thing if "item" happens to contain backslashes.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 25 00:30:15 2003

This is an archived mail posted to the Subversion Dev mailing list.