diff --git a/usr.bin/limits/limits.1 b/usr.bin/limits/limits.1 index 5aa48035b66a..b3a154cefc22 100644 --- a/usr.bin/limits/limits.1 +++ b/usr.bin/limits/limits.1 @@ -30,11 +30,11 @@ .Op Fl C Ar class .Op Fl SHB .Op Fl ea -.Op Fl cdflmnstuv Op val +.Op Fl bcdflmnstuv Op val .Nm .Op Fl C Ar class .Op Fl SHB -.Op Fl cdflmnstuv Op val +.Op Fl bcdflmnstuv Op val .Op Fl E .Op Ar name Ns = Ns Ar value ... .Op Ar command @@ -42,11 +42,11 @@ .Op Fl U Ar user .Op Fl SHB .Op Fl ea -.Op Fl cdflmnstuv Op val +.Op Fl bcdflmnstuv Op val .Nm .Op Fl U Ar user .Op Fl SHB -.Op Fl cdflmnstuv Op val +.Op Fl bcdflmnstuv Op val .Op Fl E .Op Ar name Ns = Ns Ar value ... .Op Ar command diff --git a/usr.bin/limits/limits.c b/usr.bin/limits/limits.c index 454b718b4843..8164b5bc3a4f 100644 --- a/usr.bin/limits/limits.c +++ b/usr.bin/limits/limits.c @@ -260,7 +260,7 @@ main(int argc, char *argv[]) } optarg = NULL; - while ((ch = getopt(argc, argv, ":EeC:U:BSHabc:d:f:l:m:n:s:t:u:v:")) != -1) { + while ((ch = getopt(argc, argv, ":EeC:U:BSHab:c:d:f:l:m:n:s:t:u:v:")) != -1) { switch(ch) { case 'a': doall = 1; @@ -539,6 +539,7 @@ resource_num(int which, int ch, const char *str) case RLIMIT_CORE: case RLIMIT_RSS: case RLIMIT_MEMLOCK: + case RLIMIT_SBSIZE: case RLIMIT_VMEM: errno = 0; res = 0;