summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-01-27 00:45:38 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-06-16 17:04:25 -0400
commit342c39d0bf6724f8fb386aef5e214571c08371b6 (patch)
treef1cee3526c8832207643842e0fec1f33ea54848a
parentffabccd576d915fedee39842cade1be2d87fe1ff (diff)
nspawn: fix clobbering of selinux context arg
First bug fixed by gcc 7. Yikes. (cherry picked from commit 9ce6d1b319f8655100af6ecf5fd57e4558d57dd1)
-rw-r--r--src/nspawn/nspawn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index ce16abeb8e..f3e27f04f5 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -657,9 +657,8 @@ static int parse_argv(int argc, char *argv[]) {
r = free_and_strdup(&arg_machine, optarg);
if (r < 0)
return log_oom();
-
- break;
}
+ break;
case 'Z':
arg_selinux_context = optarg;