[SSSD] [PATCH] set ret to EOK after for loop in sdap_sudo_purge_sudoers

Jakub Hrozek jhrozek at redhat.com
Wed Jan 2 16:40:39 UTC 2013


On Wed, Jan 02, 2013 at 05:31:02PM +0100, Jakub Hrozek wrote:
> 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 at 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.

Pushed to master.



More information about the sssd-devel mailing list