]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
seccomp: fix strerror()
authorJames Cowgill <james410@cowgill.org.uk>
Thu, 18 Aug 2016 15:48:24 +0000 (16:48 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:31:47 +0000 (18:31 -0500)
Signed-off-by: James Cowgill <james410@cowgill.org.uk>
src/lxc/seccomp.c

index 0374eca05a857130c8500e40b12ad6d3e6b5f3bc..ec77c45fd5a64699bbe28d9ae4d03a058b3690b9 100644 (file)
@@ -215,7 +215,7 @@ scmp_filter_ctx get_new_ctx(enum lxc_hostarch_t n_arch, uint32_t default_policy_
        ret = seccomp_arch_add(ctx, arch);
        if (ret != 0) {
                ERROR("Seccomp error %d (%s) adding arch: %d", ret,
-                               strerror(ret), (int)n_arch);
+                               strerror(-ret), (int)n_arch);
                seccomp_release(ctx);
                return NULL;
        }