[arch-projects] [initscripts] [PATCH 08/13] functions: Fixup remove_leftover() stat_done/stat_fail condition
Kurt J. Bosch
kjb-temp-2009 at alpenjodel.de
Tue Jul 12 12:13:09 EDT 2011
Dave Reisner, 2011-07-12 12:22:
> 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...
OK. Squashed in the new thread.
--
Kurt
More information about the arch-projects
mailing list