summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-07 17:40:36 +0000
committerjlam <jlam@pkgsrc.org>2004-01-07 17:40:36 +0000
commit8a4b69c91d93fd3c0cf245ae983ca0f49e4192c7 (patch)
tree6783e58c8d0083043ac1740f72f9b21627aacaa2 /mk
parent8eb40b6cb9e385b4abc7f41fa63fedecd7430f75 (diff)
downloadpkgsrc-8a4b69c91d93fd3c0cf245ae983ca0f49e4192c7.tar.gz
Make the wrapper exit with error code 2 to signify a buffer overflow to
avoid infinite loops.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink3/buffer4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/buildlink3/buffer b/mk/buildlink3/buffer
index 8dd45bd0e8d..52a91a79732 100644
--- a/mk/buildlink3/buffer
+++ b/mk/buildlink3/buffer
@@ -1,4 +1,4 @@
-# $NetBSD: buffer,v 1.2 2004/01/07 17:31:02 jlam Exp $
+# $NetBSD: buffer,v 1.3 2004/01/07 17:40:36 jlam Exp $
#
# Fill the buffer if it's empty, and shift the arguments. The next
# argument checked by the cache and logic files is taken from the
@@ -47,6 +47,7 @@ case ${buf1}${buf2}${buf3}${buf4}${buf5} in
elif $test -z "$buf3"; then buf3="$R$1"
elif $test -z "$buf4"; then buf4="$R$1"
elif $test -z "$buf5"; then buf5="$R$1"
+ else exit 2
fi
;;
esac
@@ -63,6 +64,7 @@ case ${buf1}${buf2}${buf3}${buf4}${buf5} in
elif $test -z "$buf3"; then buf3="$arg"
elif $test -z "$buf4"; then buf4="$arg"
elif $test -z "$buf5"; then buf5="$arg"
+ else exit 2
fi
;;
esac