Make sbsize a size instead of a number. This allows the usual suffixes

to be applied to the value given.  This does not break installed
/etc/login.conf files, since un-suffixed numbers are interpreted as
they were before.

PR:		19750
Submitted by:	Paul Herman <pherman@frenchfries.net>
This commit is contained in:
sheldonh 2000-07-14 13:56:07 +00:00
parent 863dc9acc4
commit 02e9e6640f
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ notation may be used.
.It memorylocked size Maximum locked in core memory size limit.
.It maxproc number Maximum number of processes.
.It openfiles number Maximum number of open files per process.
.It sbsize number Maximum permitted socketbuffer size.
.It sbsize size Maximum permitted socketbuffer size.
.El
.Pp
These resource limit entries actually specify both the maximum

View File

@ -55,7 +55,7 @@ static struct login_res {
{ "maxproc", login_getcapnum, RLIMIT_NPROC },
{ "openfiles", login_getcapnum, RLIMIT_NOFILE },
{ "coredumpsize", login_getcapsize, RLIMIT_CORE },
{ "sbsize", login_getcapnum, RLIMIT_SBSIZE },
{ "sbsize", login_getcapsize, RLIMIT_SBSIZE },
{ NULL, 0, 0 }
};