diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-14 03:12:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-14 03:12:25 +0100 |
commit | 6df6b93910da6cf501325d861fcf2d7f8b8bf556 (patch) | |
tree | 40d21fbd76660227ae3879d5f9ca0bd77f5f6b3e /src/nspawn.c | |
parent | 91b22f21f3824c1766d34f622c5bbb70cbe881a8 (diff) |
nspawn: improve exit warning
Diffstat (limited to 'src/nspawn.c')
-rw-r--r-- | src/nspawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nspawn.c b/src/nspawn.c index 4e4d40ea6f..fa70e86c46 100644 --- a/src/nspawn.c +++ b/src/nspawn.c @@ -366,7 +366,7 @@ int main(int argc, char *argv[]) { } if (path_equal(arg_directory, "/")) { - log_error("Spawning constainer on root directory not supported."); + log_error("Spawning container on root directory not supported."); goto finish; } @@ -429,7 +429,7 @@ int main(int argc, char *argv[]) { _exit(EXIT_FAILURE); } - r = wait_for_terminate_and_warn("container", pid); + r = wait_for_terminate_and_warn(argc > optind ? argv[optind] : "bash", pid); if (r < 0) r = EXIT_FAILURE; |