[arch-projects] [initscripts] [PATCH 08/13] functions: Fixup remove_leftover() stat_done/stat_fail condition

Dave Reisner d at falconindy.com
Tue Jul 12 06:22:41 EDT 2011


On Tue, Jul 12, 2011 at 10:55:19AM +0200, Kurt J. Bosch wrote:
> Avoid overriding error condition in case any custom stat_fail returns false.
> ---
>  functions |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/functions b/functions
> index a3c3c5e..2bd6893 100644
> --- a/functions
> +++ b/functions
> @@ -431,7 +431,7 @@ remove_leftover() {
>  		# Keep {x,k,g}dm happy with xorg
>  		mkdir -m 1777 /tmp/.{X11,ICE}-unix
>  		trap - ERR
> -	(( error )) && stat_fail || stat_done
> +	(( error == 0 )) && stat_done || stat_fail
>  	return $error
>  }
>  
> -- 
> 1.7.1
> 

This is a bug fix patch on top of an unmerged patch...


More information about the arch-projects mailing list