summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-07-14 13:56:07 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-07-14 13:56:07 +0000
commit02e9e6640f1fd27daee4d0d33cd959887ee5f25a (patch)
tree062b531900ac47b1f670b6c0694e4079bb986595 /lib
parent863dc9acc434da687d7b40dc08c2f51a907a55d3 (diff)
downloadFreeBSD-src-02e9e6640f1fd27daee4d0d33cd959887ee5f25a.zip
FreeBSD-src-02e9e6640f1fd27daee4d0d33cd959887ee5f25a.tar.gz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/login.conf.52
-rw-r--r--lib/libutil/login_class.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login.conf.5 b/lib/libutil/login.conf.5
index b958048..cd1f65e 100644
--- a/lib/libutil/login.conf.5
+++ b/lib/libutil/login.conf.5
@@ -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
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index 478d9b2..36c5c50 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -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 }
};
OpenPOWER on IntegriCloud