diff options
Diffstat (limited to 'zen/file_path.cpp')
-rw-r--r-- | zen/file_path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<PathComponents> 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*/); |