Skip to content

Commit

Permalink
storage/nfs: MapUTF8("") returns the full URL including parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jan 30, 2025
1 parent 7c4ddb5 commit 63ad12b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/storage/plugins/NfsStorage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ std::string
NfsStorage::MapUTF8(std::string_view uri_utf8) const noexcept
{
if (uri_utf8.empty())
return base;
/* this special case returns the original "nfs://" URI
with all parameters (they are missing in the "base"
variable); this is important because MapUTF8("") is
called for the state file */
return url;

return PathTraitsUTF8::Build(base, uri_utf8);
}
Expand Down

0 comments on commit 63ad12b

Please sign in to comment.