sbsv2/raptor/util/talon/talon.c
branchfix
changeset 409 1b444ea0baec
parent 407 bda21097164c
--- a/sbsv2/raptor/util/talon/talon.c	Thu Mar 25 11:35:53 2010 +0000
+++ b/sbsv2/raptor/util/talon/talon.c	Thu Mar 25 14:43:35 2010 +0000
@@ -586,7 +586,7 @@
 
 				if (p->returncode != 0)
 				{
-					char *exitstr = force_success ? "failed" : retries > 0 ? "retry" : "failed";
+					char *exitstr = (force_success || retries <= 0) ? "failed" : "retry";
 					snprintf(status, STATUS_STRMAX - 1, "\n<status exit='%s' code='%d' attempt='%d'%s%s />", exitstr, p->returncode, attempt, flagsstr, reasonstr );
 				} else {
 					snprintf(status, STATUS_STRMAX - 1, "\n<status exit='ok' attempt='%d'%s%s />", attempt, flagsstr, reasonstr );