]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
copy_rdepends: Don't fail on missing source file 4624/head
authorjamesfeatherston <jamesfeatherston@utexas.edu>
Sun, 14 Dec 2025 00:49:57 +0000 (18:49 -0600)
committerStéphane Graber <stgraber@stgraber.org>
Tue, 16 Dec 2025 02:19:15 +0000 (21:19 -0500)
Signed-off-by: jamesfeatherston <jamesfeatherston@utexas.edu>
src/lxc/lxccontainer.c

index 6f110ea3b7035b3d4ad0c8090a0008bfa6965103..ea3a31bb4a0366e23dd11da5fd3cc0215f3d12bb 100644 (file)
@@ -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;