Skip to content

Commit 63ad12b

Browse files
committed
storage/nfs: MapUTF8("") returns the full URL including parameters
Closes #2154
1 parent 7c4ddb5 commit 63ad12b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/storage/plugins/NfsStorage.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ std::string
239239
NfsStorage::MapUTF8(std::string_view uri_utf8) const noexcept
240240
{
241241
if (uri_utf8.empty())
242-
return base;
242+
/* this special case returns the original "nfs://" URI
243+
with all parameters (they are missing in the "base"
244+
variable); this is important because MapUTF8("") is
245+
called for the state file */
246+
return url;
243247

244248
return PathTraitsUTF8::Build(base, uri_utf8);
245249
}

0 commit comments

Comments
 (0)