From 03efe856012a55165542a3ac5c9055c25723f5e8 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sun, 26 Jun 2022 11:59:57 -0400 Subject: add upstream 11.22 --- zen/file_path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zen/file_path.cpp') diff --git a/zen/file_path.cpp b/zen/file_path.cpp index 926b5c89..68137b90 100644 --- a/zen/file_path.cpp +++ b/zen/file_path.cpp @@ -35,7 +35,7 @@ std::optional zen::parsePathComponents(const Zstring& itemPath) pc = doParse(3 /*sepCountVolumeRoot*/, false /*rootWithSep*/); if (!pc && startsWith(itemPath, "/media/")) //Ubuntu: e.g. /media/zenju/DEVICE_NAME - if (const char* username = ::getenv("USER")) + if (const char* username = ::getenv("USER")) //no ownership transfer + no extended error reporting if (startsWith(itemPath, std::string("/media/") + username + "/")) pc = doParse(4 /*sepCountVolumeRoot*/, false /*rootWithSep*/); -- cgit