Date: Fri, 7 Jul 2000 09:57:45 +0200 (CEST) From: pherman@frenchfries.net To: FreeBSD-gnats-submit@freebsd.org Subject: conf/19750: sbsize in /etc/login.conf is type number Message-ID: <200007070757.e677vjL01198@bagabeedaboo.security.at12.de>
index | next in thread | raw e-mail
>Number: 19750
>Category: conf
>Synopsis: sbsize in /etc/login.conf is type number
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 07 01:10:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Paul Herman
>Release: FreeBSD 4.0-STABLE i386
>Organization:
>Environment:
4.0-STABLE-20000704
>Description:
sbsize in /etc/login.conf has type "number" instead of
"bytes". For example, if the administrator wishes to
set a 2 MB limit on sbsize, 2097152 works, but "2M"
gives an error at login.
>How-To-Repeat:
Try to use any size setting (i.e. "2M", "1024K", etc.) for sbsize.
>Fix:
Patch for libutil (tested for about 5 minutes, seems to work :)
--- lib/libutil/login.conf.5.orig Fri Jul 7 09:26:39 2000
+++ lib/libutil/login.conf.5 Fri Jul 7 09:26:47 2000
@@ -160,5 +160,5 @@
.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
--- lib/libutil/login_class.c.orig Fri Jul 7 09:22:42 2000
+++ lib/libutil/login_class.c Fri Jul 7 09:23:24 2000
@@ -56,5 +56,5 @@
{ "openfiles", login_getcapnum, RLIMIT_NOFILE },
{ "coredumpsize", login_getcapsize, RLIMIT_CORE },
- { "sbsize", login_getcapnum, RLIMIT_SBSIZE },
+ { "sbsize", login_getcapsize, RLIMIT_SBSIZE },
{ NULL, 0, 0 }
};
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007070757.e677vjL01198>
