[PATCH] pdbedit.c: the exit code should be 0 when '--policies-reset' is success

Jeremy Allison jra at samba.org
Wed May 22 12:24:53 MDT 2013


On Wed, May 22, 2013 at 04:47:19PM +0800, Peng Haitao wrote:
> When '--policies-reset' is success, the exit code should be 0.
> 
> Signed-off-by: Peng Haitao <penght at cn.fujitsu.com>

+1

Reviewed-by: Jeremy Allison <jra at samba.org>

> ---
>  source3/utils/pdbedit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
> index 908f0ba..8e3a5a5 100644
> --- a/source3/utils/pdbedit.c
> +++ b/source3/utils/pdbedit.c
> @@ -1181,7 +1181,7 @@ int main (int argc, char **argv)
>  	}
>  
>  	if (reset_account_policies) {
> -		if (!reinit_account_policies()) {
> +		if (reinit_account_policies()) {
>  			exit(1);
>  		}
>  
> -- 
> 1.8.1.4

Can I get a second Team +1 and I'll push !

Thanks,

Jeremy.


More information about the samba-technical mailing list