aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorAaron Lehmann <aaronl@vitelius.com>2001-12-31 06:03:12 +0000
committerAaron Lehmann <aaronl@vitelius.com>2001-12-31 06:03:12 +0000
commit2aef3a6bb9a0c3aa29902dae2fce58df261ae455 (patch)
treec42b2f8af352940541cd1ac9d166779f8d94046d /shell
parent95877b675640b7fb341bc9a927dcbb7cdea46b25 (diff)
downloadbusybox-2aef3a6bb9a0c3aa29902dae2fce58df261ae455.tar.gz
ash patch: breakcmd-diff
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index bc1b4da81..f2fd65728 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2996,6 +2996,8 @@ breakcmd(int argc, char **argv)
{
int n = argc > 1 ? number(argv[1]) : 1;
+ if (n <= 0)
+ error("Illegal number: %s", argv[1]);
if (n > loopnest)
n = loopnest;
if (n > 0) {
@@ -12479,7 +12481,7 @@ findvar(struct var **vpp, const char *name)
/*
* Copyright (c) 1999 Herbert Xu <herbert@debian.org>
* This file contains code for the times builtin.
- * $Id: ash.c,v 1.40 2001/12/31 06:00:57 aaronl Exp $
+ * $Id: ash.c,v 1.41 2001/12/31 06:03:12 aaronl Exp $
*/
static int timescmd (int argc, char **argv)
{