summaryrefslogtreecommitdiff
path: root/zen/file_path.cpp
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-06-26 16:00:37 +0000
committerB. Stack <bgstack15@gmail.com>2022-06-26 16:00:37 +0000
commit2a026bc7d76875b88700bebc7c5a801fef881bfd (patch)
treef820b53379f3d14e103e2663e8b0ecd38d1b2105 /zen/file_path.cpp
parentMerge branch 'b11.21' into 'master' (diff)
parentadd upstream 11.22 (diff)
downloadFreeFileSync-2a026bc7d76875b88700bebc7c5a801fef881bfd.tar.gz
FreeFileSync-2a026bc7d76875b88700bebc7c5a801fef881bfd.tar.bz2
FreeFileSync-2a026bc7d76875b88700bebc7c5a801fef881bfd.zip
Merge branch '11.22' into 'master'11.22
add upstream 11.22 See merge request opensource-tracking/FreeFileSync!45
Diffstat (limited to 'zen/file_path.cpp')
-rw-r--r--zen/file_path.cpp2
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*/);
bgstack15