From b5bb9d5560f60e8626f37d246b26765c61af29e0 Mon Sep 17 00:00:00 2001 From: paul_reeves Date: Wed, 13 Nov 2002 14:43:01 +0000 Subject: [PATCH] -m Fix bug: 623992 - double forward slash in connection string. With thanks to Mark O'Donohue. --- src/jrd/isc_file.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jrd/isc_file.cpp b/src/jrd/isc_file.cpp index 7ed350994f..8933fb138f 100644 --- a/src/jrd/isc_file.cpp +++ b/src/jrd/isc_file.cpp @@ -1216,6 +1216,12 @@ static int expand_filename2(TEXT * from_buff, USHORT length, TEXT * to_buff) while (*from) { segment = to; + /* skip dual // (will collapse /// to / as well) */ + if (*from == '/' && from[1] == '/') { + ++from; + continue; + } + /* Copy the leading slash, if any */ if (*from == '/') {