aboutgitcodelistschat:MatrixIRC
path: root/operations.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-06-14 13:32:15 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-06-14 13:32:15 +0200
commit54bca55ae5212002f8b5178f3d427cb4f54be233 (patch)
tree8d822634eb2ce1281ab6bce8824a8302b093f2a1 /operations.c
parent920081a68f0f1f12de37c3ad0e3727e783b71ac7 (diff)
downloadseitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.gz
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.bz2
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.lz
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.xz
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.tar.zst
seitan-54bca55ae5212002f8b5178f3d427cb4f54be233.zip
cooker: Fix up debugging messages for "return"
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'operations.c')
-rw-r--r--operations.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/operations.c b/operations.c
index 70c8f08..bb995df 100644
--- a/operations.c
+++ b/operations.c
@@ -346,10 +346,12 @@ int op_return(const struct seccomp_notif *req, int notifier, struct gluten *g,
} else {
resp.id = req->id;
resp.flags = 0;
- resp.error = desc->error;
if (gluten_read(&req->data, g, &resp.val, desc->val,
sizeof(resp.val)) == -1)
return -1;
+ if (gluten_read(&req->data, g, &resp.error, desc->error,
+ sizeof(resp.error)) == -1)
+ return -1;
debug(" op_return: val=%ld errno=%d", resp.val, resp.error);
}
@@ -552,5 +554,6 @@ int eval(struct gluten *g, const struct seccomp_notif *req,
ret_err(-1, "unknown operation %d", op->type);
}
}
+
return 0;
}