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:
Sheldon Hearn 2000-07-14 13:56:07 +00:00
parent e3186dd555
commit 0c69785700
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63149
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 }
};