From: jamesfeatherston Date: Sun, 14 Dec 2025 00:49:57 +0000 (-0600) Subject: copy_rdepends: Don't fail on missing source file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49c34b1bcd72c602953ab9c4cb60bc4f2ebcf653;p=thirdparty%2Flxc.git copy_rdepends: Don't fail on missing source file Signed-off-by: jamesfeatherston --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 6f110ea3b..ea3a31bb4 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -3468,6 +3468,10 @@ static void copy_rdepends(struct lxc_container *c, struct lxc_container *c0) return; } + if (!file_exists(path0)) { + return; + } + if (copy_file(path0, path1) < 0) { INFO("Error copying reverse dependencies"); return;