[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 04:55:19 EDT 2011


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



More information about the arch-projects mailing list