Fix: kernel ctl error codes are based on errno
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 676aa0d9e2f066bec6b439f61e151579f4758bb5..9612b9a23154f0e9cc0b8e342bb722c5ca019487 100644 (file)
@@ -958,12 +958,12 @@ static int snapshot_channel(uint64_t key, char *path, uint64_t relayd_id,
                                        padded_len - len);
                        if (use_relayd) {
                                if (read_len != len) {
-                                       ret = -1;
+                                       ret = -EPERM;
                                        goto error_put_subbuf;
                                }
                        } else {
                                if (read_len != padded_len) {
-                                       ret = -1;
+                                       ret = -EPERM;
                                        goto error_put_subbuf;
                                }
                        }
This page took 0.027363 seconds and 5 git commands to generate.