freebsd-dev/usr.sbin/portsnap
Colin Percival 723c596167 Correctly exit from extract_run() and update_run() if files needed are
missing from ${WORKDIR}/files/.

This bug was caused by the astonishing interaction of "return" and
pipelines; in the following code, the "return" does not exit the
function, but instead exits the subshell which was spawned for the last
element of the pipeline; consequently, the output produced is "foo".

foo() {
	echo bar | while read baz; do
		if [ ${baz} = "bar" ]; then
			return 1
		fi
	done

	echo foo
}

Reported by:	simon
2005-08-13 21:28:43 +00:00
..
make_index Check that malloc() succeeds in makelist. 2005-08-09 09:49:01 +00:00
phttpget Remove unused variable. 2005-08-10 13:45:00 +00:00
portsnap Correctly exit from extract_run() and update_run() if files needed are 2005-08-13 21:28:43 +00:00
Makefile
Makefile.inc