From b3e9c9281d188d6b82c94f300eb7237368e6a8d8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 4 Mar 2016 13:22:39 -0600 Subject: Elliott pointed out that we output "unlimited" instead of "infinity", so accept that as input. (And that I screwed up the test.) --- toys/posix/ulimit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') 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; -- cgit v1.2.3