>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> It's exactly what I was looking for. Thanks. Could you try out
Angus> the attached patch to package.C? Here it gives:

+string const append_trailing_slash(string const & input)
+{
+       return suffixIs(input, '/') ? input : input + '/';
+}
+

Wouldn't it be safer to guard against empty input here? "" and "/" are
pretty different... Then you could avoid the test later in your patch.

JMarc

Reply via email to