aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-04 13:22:39 -0600
committerRob Landley <rob@landley.net>2016-03-04 13:22:39 -0600
commitb3e9c9281d188d6b82c94f300eb7237368e6a8d8 (patch)
tree6db553baa0ba5bbb63894106fb4c4890f25be244 /toys/posix
parent5ad93f32da3e2ac70b1fa929889d3034c79f7ed6 (diff)
downloadtoybox-b3e9c9281d188d6b82c94f300eb7237368e6a8d8.tar.gz
Elliott pointed out that we output "unlimited" instead of "infinity", so
accept that as input. (And that I screwed up the test.)
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/ulimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ulimit.c b/toys/posix/ulimit.c
index b4d8e946..0aedd2cc 100644
--- a/toys/posix/ulimit.c
+++ b/toys/posix/ulimit.c
@@ -107,7 +107,7 @@ void ulimit_main(void)
if (toys.optc) {
rlim_t val;
- if (tolower(**toys.optargs == 'i')) val = RLIM_INFINITY;
+ if (tolower(**toys.optargs) == 'u') val = RLIM_INFINITY;
else val = atolx_range(*toys.optargs, 0, LONG_MAX);
if (toys.optflags&FLAG_H) rr.rlim_max = val;