aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-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;