|
|
d6181b |
From 7fcd0a70d6dcaab3aa8f2a84ce9dc939ec350415 Mon Sep 17 00:00:00 2001
|
|
|
d6181b |
From: Tomas Halman <thalman@redhat.com>
|
|
|
d6181b |
Date: Wed, 21 Aug 2019 17:00:44 +0200
|
|
|
d6181b |
Subject: [PATCH] BE: Invalid oprator used in condition
|
|
|
d6181b |
MIME-Version: 1.0
|
|
|
d6181b |
Content-Type: text/plain; charset=UTF-8
|
|
|
d6181b |
Content-Transfer-Encoding: 8bit
|
|
|
d6181b |
|
|
|
d6181b |
There is wrong binary or used in condition. We have to use & here
|
|
|
d6181b |
|
|
|
d6181b |
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1744134
|
|
|
d6181b |
|
|
|
d6181b |
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
|
|
|
d6181b |
---
|
|
|
d6181b |
src/providers/be_ptask.c | 4 ++--
|
|
|
d6181b |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
d6181b |
|
|
|
d6181b |
diff --git a/src/providers/be_ptask.c b/src/providers/be_ptask.c
|
|
|
d6181b |
index 8d75d51d1..319e44aa8 100644
|
|
|
d6181b |
--- a/src/providers/be_ptask.c
|
|
|
d6181b |
+++ b/src/providers/be_ptask.c
|
|
|
d6181b |
@@ -228,13 +228,13 @@ static void be_ptask_schedule(struct be_ptask *task,
|
|
|
d6181b |
delay = delay + (sss_rand() % task->random_offset);
|
|
|
d6181b |
}
|
|
|
d6181b |
|
|
|
d6181b |
- if(from | BE_PTASK_SCHEDULE_FROM_NOW) {
|
|
|
d6181b |
+ if(from & BE_PTASK_SCHEDULE_FROM_NOW) {
|
|
|
d6181b |
tv = tevent_timeval_current_ofs(delay, 0);
|
|
|
d6181b |
|
|
|
d6181b |
DEBUG(SSSDBG_TRACE_FUNC, "Task [%s]: scheduling task %lu seconds "
|
|
|
d6181b |
"from now [%lu]\n", task->name, delay, tv.tv_sec);
|
|
|
d6181b |
}
|
|
|
d6181b |
- else if (from | BE_PTASK_SCHEDULE_FROM_LAST) {
|
|
|
d6181b |
+ else if (from & BE_PTASK_SCHEDULE_FROM_LAST) {
|
|
|
d6181b |
tv = tevent_timeval_set(task->last_execution + delay, 0);
|
|
|
d6181b |
|
|
|
d6181b |
DEBUG(SSSDBG_TRACE_FUNC, "Task [%s]: scheduling task %lu seconds "
|
|
|
d6181b |
--
|
|
|
d6181b |
2.20.1
|
|
|
d6181b |
|