diff --git a/0067-set-normal-ret-value-when-populate-exist-device-successfully.patch b/0067-set-normal-ret-value-when-populate-exist-device-successfully.patch new file mode 100644 index 0000000000000000000000000000000000000000..12e793219d2019ce93c7b5e907bbe3db292f3bec --- /dev/null +++ b/0067-set-normal-ret-value-when-populate-exist-device-successfully.patch @@ -0,0 +1,25 @@ +From e57686a8b94905829fc295981bc8d0a1253f186b Mon Sep 17 00:00:00 2001 +From: wangkang +Date: Fri, 22 May 2020 10:00:00 +0800 +Subject: [PATCH] lxc: set normal ret value when populate exist device + successfully + +--- + src/lxc/conf.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lxc/conf.c b/src/lxc/conf.c +index f46255a4..6890da12 100644 +--- a/src/lxc/conf.c ++++ b/src/lxc/conf.c +@@ -4108,6 +4108,7 @@ static int setup_populate_devs(const struct lxc_rootfs *rootfs, struct lxc_list + ret = -1; + goto reset_umask; + } ++ ret = 0; + } + + reset_umask: +-- +2.18.2 + diff --git a/lxc.spec b/lxc.spec index a406b4935d2f9bf91cf30b7e0f671c2d7174c7ff..813d208d8d97d6f32d9b2e044d25446e0d3f87ae 100644 --- a/lxc.spec +++ b/lxc.spec @@ -74,6 +74,7 @@ Patch9062: 0063-hook-fix-memeory-leak.patch Patch9063: 0064-termainal-fix-console-log-memory-leak.patch Patch9064: 0065-lxc-disable-terminal-stdout-stderr-pipe-O_NONBLOCK.patch Patch9065: 0066-lxc-fix-tests-build-error.patch +Patch9066: 0067-set-normal-ret-value-when-populate-exist-device-successfully.patch BuildRequires: systemd-units git libtool graphviz docbook2X doxygen chrpath BuildRequires: pkgconfig(libseccomp) diff --git a/series.conf b/series.conf index 84084ad3c67a0565ba5e02efdd696fdeaf999710..f94c76d578bc6210e0916b9b6fab80473853ede1 100644 --- a/series.conf +++ b/series.conf @@ -64,3 +64,4 @@ 0064-termainal-fix-console-log-memory-leak.patch 0065-lxc-disable-terminal-stdout-stderr-pipe-O_NONBLOCK.patch 0066-lxc-fix-tests-build-error.patch +0067-set-normal-ret-value-when-populate-exist-device-successfully.patch