From 6e9dcb957942519f93c1dcffeabbe50101371430 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Thu, 10 Apr 2025 16:11:59 +0200 Subject: [PATCH] - require all parts of resolved path to exist --- client/snbk/CmdRealpath.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3