On Wed, Jan 02, 2013 at 11:14:31AM +0100, Pavel Březina wrote:
From 72a41106d86dfc11e13458ffc532c840cce2342c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina(a)redhat.com>
Date: Wed, 2 Jan 2013 11:09:32 +0100
Subject: [PATCH] set ret to EOK after for loop in sdap_sudo_purge_sudoers
If we are unable to delete some rule from cache we print a debug
message and ignore the error. Thus we should set ret to EOK after
the for loop otherwise we return whether the last rule was deleted
successfully or not.
This also removes compilation warning that ret may be used
uninitialized (when we don't go inside the loop at all).
Ack
There is no ticket associated with this patch and no bugzilla. Please
open one if you intend for this patch to also go to RHEL-6.4.