[systemd-commits] src/nspawn

Lennart Poettering lennart at kemper.freedesktop.org
Wed Oct 30 18:40:43 CET 2013


 src/nspawn/nspawn.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 88212f7bd19e30d73874aa160e789e300a643860
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Oct 30 18:40:21 2013 +0100

    nspawn: only pass in slice setting if it is set

diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index ad0287d..c0f9948 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1191,7 +1191,7 @@ static int register_machine(void) {
                         "container",
                         (uint32_t) 0,
                         strempty(arg_directory),
-                        1, "Slice", "s", strempty(arg_slice));
+                        !isempty(arg_slice), "Slice", "s", arg_slice);
         if (r < 0) {
                 log_error("Failed to register machine: %s", error.message ? error.message : strerror(-r));
                 return r;



More information about the systemd-commits mailing list