From owner-cvs-all Mon Jun 3 12:42:56 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9968B37B403; Mon, 3 Jun 2002 12:42:49 -0700 (PDT) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g53JgnS32179; Mon, 3 Jun 2002 12:42:49 -0700 (PDT) (envelope-from jhb) Message-Id: <200206031942.g53JgnS32179@freefall.freebsd.org> From: John Baldwin Date: Mon, 3 Jun 2002 12:42:49 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/sysinstall dispatch.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2002/06/03 12:42:49 PDT Modified files: usr.sbin/sysinstall dispatch.c Log: Fix handling of the 'noError' variable. According to the code comments, one can set the 'noError' variable to ignore any errors that occur for the next command. However, the code was only unsetting 'noError' when an error actually occurred, so if you set 'noError', the next command completed ok, and the command after that failed, the second command's failure would be ignored. This fixes this by performing the 'noError' check earlier and then unsetting 'noError' after every command that is run. Sponsored by: The Weather Channel Revision Changes Path 1.42 +11 -12 src/usr.sbin/sysinstall/dispatch.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message