chiark / gitweb /
nspawn: no need for duplicate checks against EEXIST
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Feb 2014 19:33:17 +0000 (20:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 Feb 2014 01:19:28 +0000 (02:19 +0100)
src/nspawn/nspawn.c

index 1a029352453a1af8f7ca97f10a7ac637a88fe452..1fe641b7ca1a1ca28461725f5c5f9636edec147d 100644 (file)
@@ -1738,7 +1738,7 @@ static int audit_still_doesnt_work_in_containers(void) {
                 return log_oom();
 
         r = seccomp_add_secondary_archs(seccomp);
-        if (r < 0 && r != -EEXIST) {
+        if (r < 0) {
                 log_error("Failed to add secondary archs to seccomp filter: %s", strerror(-r));
                 goto finish;
         }