]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- require all parts of resolved path to exist 1001/head
authorArvin Schnell <aschnell@suse.de>
Thu, 10 Apr 2025 14:11:59 +0000 (16:11 +0200)
committerArvin Schnell <aschnell@suse.de>
Thu, 10 Apr 2025 14:11:59 +0000 (16:11 +0200)
client/snbk/CmdRealpath.cc

index eebb104029fbbce92ed704759f357a499e0a96c8..528b89a6cb0d68093ec61fd67e8724c42c9dc922 100644 (file)
@@ -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)