aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2011-11-20 21:48:50 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2011-11-20 21:48:50 +0000
commitbf3db314f7202d264439f36c4b50f843640c242a (patch)
treefb3cfbbb7119330e418d411dac19dde88b90c1bd /bin
parentf73031b47f39dbc2bfc6ce214dc5041ba05acc07 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sh/options.c b/bin/sh/options.c
index 9104e93270fc..4c2c8ab8e3ec 100644
--- a/bin/sh/options.c
+++ b/bin/sh/options.c
@@ -401,9 +401,10 @@ setcmd(int argc, char **argv)
void
getoptsreset(const char *value)
{
- if (number(value) == 1) {
+ while (*value == '0')
+ value++;
+ if (strcmp(value, "1") == 0)
shellparam.reset = 1;
- }
}
/*