Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
lib/ringbuffer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ringbuffer.c b/lib/ringbuffer.c
index f46d735..67b2fb4 100644
--- a/lib/ringbuffer.c
+++ b/lib/ringbuffer.c
@@ -736,11 +736,11 @@ qb_rb_chown(struct qb_ringbuffer_s * rb, uid_t owner, gid_t group)
return -EINVAL;
}
res = chown(rb->shared_hdr->data_path, owner, group);
- if (res < 0) {
+ if (res < 0 && errno != EPERM) {
return -errno;
}
res = chown(rb->shared_hdr->hdr_path, owner, group);
- if (res < 0) {
+ if (res < 0 && errno != EPERM) {
return -errno;
}
return 0;
--
1.7.10
Show replies by date