From: Arvin Schnell Date: Thu, 10 Apr 2025 14:11:59 +0000 (+0200) Subject: - require all parts of resolved path to exist X-Git-Tag: v0.12.2~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1001%2Fhead;p=thirdparty%2Fsnapper.git - require all parts of resolved path to exist --- diff --git a/client/snbk/CmdRealpath.cc b/client/snbk/CmdRealpath.cc index eebb1040..528b89a6 100644 --- a/client/snbk/CmdRealpath.cc +++ b/client/snbk/CmdRealpath.cc @@ -34,7 +34,7 @@ namespace snapper CmdRealpath::CmdRealpath(const string& realpath_bin, const Shell& shell, const string& path) : path(path) { - SystemCmd::Args cmd_args = { realpath_bin, "--", path }; + SystemCmd::Args cmd_args = { realpath_bin, "--canonicalize-existing", "--", path }; SystemCmd cmd(shellify(shell, cmd_args)); if (cmd.retcode() != 0)