]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Join XML contents with newline to prevent corruption 1176/head
authorCheng-Ling Lai <jameslai.tech@gmail.com>
Wed, 5 Aug 2026 06:19:39 +0000 (14:19 +0800)
committerCheng-Ling Lai <jameslai.tech@gmail.com>
Wed, 5 Aug 2026 06:19:39 +0000 (14:19 +0800)
client/snbk/CmdMetaParse.cc

index f62b333b137a6e00de3b1dcc400415f4b9738d58..8b8fcb4aab8bc0af1dda676b88c9a965c969e5cb 100644 (file)
@@ -61,7 +61,7 @@ namespace snapper
            SN_THROW(Exception(_("Failed to load info.xml.")));
        }
 
-       content = boost::join(cmd.get_stdout(), "");
+       content = boost::join(cmd.get_stdout(), "\n");
 
        y2mil(*this);
     }