Skip to contentSkip to conversation

stubdom: fix stubdom-dm

PATCH New Christoph Egger 1 participant 1 message Jul 14, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: fix stubdom-dm

Hi!

Attached patch fixes error path in stubdom-dm:
Exit the shell and not a subshell.

Keir: Please apply this to Xen 3.4-testing and Xen 3.3-testing, too.

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
stubdom/stubdom-dm +2 -2
diff -r 82c6d0b8852e stubdom/stubdom-dm
@@ -74,8 +74,8 @@ do
     shift
 done
 
-[ -z "$domid"   ] && ( echo "couldn't find domain ID" ; exit 1 )
-[ -z "$domname" ] && ( echo "couldn't find domain name" ; exit 1 )
+[ -z "$domid"   ] && { echo "couldn't find domain ID" ; exit 1; }
+[ -z "$domname" ] && { echo "couldn't find domain name" ; exit 1; }
 
 # Termination handler
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel