projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: kernel ctl error codes are based on errno
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 676aa0d9e2f066bec6b439f61e151579f4758bb5..9612b9a23154f0e9cc0b8e342bb722c5ca019487 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-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) {
padded_len - len);
if (use_relayd) {
if (read_len != len) {
- ret = -
1
;
+ ret = -
EPERM
;
goto error_put_subbuf;
}
} else {
if (read_len != padded_len) {
goto error_put_subbuf;
}
} else {
if (read_len != padded_len) {
- ret = -
1
;
+ ret = -
EPERM
;
goto error_put_subbuf;
}
}
goto error_put_subbuf;
}
}
This page took
0.024853 seconds
and
4
git commands to generate.