From nobody@FreeBSD.org  Thu Jul 13 07:46:22 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3BBAD16A4DD
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Jul 2006 07:46:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EB2FB43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Jul 2006 07:46:21 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6D7kLbW081356
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 13 Jul 2006 07:46:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6D7kLS9081355;
	Thu, 13 Jul 2006 07:46:21 GMT
	(envelope-from nobody)
Message-Id: <200607130746.k6D7kLS9081355@www.freebsd.org>
Date: Thu, 13 Jul 2006 07:46:21 GMT
From: "Dr. Markus Waldeck" <waldeck@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: man login.conf does explain not "unlimited"
X-Send-Pr-Version: www-2.3

>Number:         100196
>Category:       docs
>Synopsis:       man login.conf does explain not "unlimited"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          patched
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 13 07:50:19 GMT 2006
>Closed-Date:    
>Last-Modified:  Sun Oct 27 05:10:00 UTC 2013
>Originator:     Dr. Markus Waldeck
>Release:        6.1
>Organization:
>Environment:
>Description:
The examples in /etc/login.conf use two possible values for "unlimited" (unlimited and infinity).

A look in the source code (usr.bin/limits/limits.c, Revision 1.14, line 497 - 500) reveals that there a FOUR possible values to express unlimited:
- inf
- infinity
- unlimit
- unlimited

Unfortunately there is no explanation in man login.conf at all.
>How-To-Repeat:
man login.conf
>Fix:
Add the explanation.
>Release-Note:
>Audit-Trail:

From: Jamie Landeg Jones <jamie.landeg.jones@gmail.com>
To: bug-followup@FreeBSD.org, waldeck@gmx.de
Cc:  
Subject: Re: docs/100196: man login.conf does explain not &quot;unlimited&quot;
Date: Sun, 27 Oct 2013 09:03:38 +0800

 --047d7b62535ac2c17404e9ae8d6d
 Content-Type: text/plain; charset=ISO-8859-1
 
 I too noticed this, and googled 'login.conf unlimited infinity' to check if
 there was actually any subtle difference between the two. (Hence finding
 this PR)
 
 The default login.conf uses both forms.
 
 Cheers,
       Jamie
 
 --047d7b62535ac2c17404e9ae8d6d
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 <p>I too noticed this, and googled &#39;login.conf unlimited infinity&#39; =
 to check if there was actually any subtle difference between the two. (Henc=
 e finding this PR)</p>
 <p>The default login.conf uses both forms.</p>
 <p>Cheers,<br>
 =A0=A0=A0=A0=A0 Jamie</p>
 
 --047d7b62535ac2c17404e9ae8d6d--
State-Changed-From-To: open->patched 
State-Changed-By: eadler 
State-Changed-When: Sun Oct 27 05:09:12 UTC 2013 
State-Changed-Why:  
I've changed the man page in r257205; it will be merged to {8,9,10} 
shortly 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100196 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/100196: commit references a PR
Date: Sun, 27 Oct 2013 04:59:25 +0000 (UTC)

 Author: eadler
 Date: Sun Oct 27 04:59:18 2013
 New Revision: 257205
 URL: http://svnweb.freebsd.org/changeset/base/257205
 
 Log:
   Mention in login.conf.5 which fields may be infinite and how to specifify infinity.
   The number of ways to indicate this confuses people.
   
   PR:		docs/100196
   Reported by:	"Dr. Markus Waldeck" <waldeck@gmx.de>
   Reported by:	Jamie Landeg Jones <jamie.landeg.jones@gmail.com>
 
 Modified:
   head/lib/libutil/login.conf.5
 
 Modified: head/lib/libutil/login.conf.5
 ==============================================================================
 --- head/lib/libutil/login.conf.5	Sun Oct 27 04:49:40 2013	(r257204)
 +++ head/lib/libutil/login.conf.5	Sun Oct 27 04:59:18 2013	(r257205)
 @@ -130,6 +130,7 @@ tag being delimited from the value by '=
  Whichever method is used, then all records in the database must use the
  same method to allow values to be correctly overridden in interpolated
  records.
 +A numeric value may be infinite.
  .It size
  A number which expresses a size.
  The default interpretation of a value is the number of bytes, but a
 @@ -148,6 +149,7 @@ represents terabytes.
  .El
  A size value is a numeric quantity and case of the suffix is not significant.
  Concatenated values are added together.
 +A size value may be infinite.
  .It time
  A period of time, by default in seconds.
  A prefix may specify a different unit:
 @@ -168,8 +170,16 @@ the number of seconds.
  Concatenated values are added together.
  For example, 2 hours and 40 minutes may be written either as
  9600s, 160m or 2h40m.
 +A time value may be infinite.
  .El
  .Pp
 +.Dq infinity ,
 +.Dq inf ,
 +.Dq unlimited ,
 +.Dq unlimit,
 +and -1
 +are considered infinite values.
 +.Pp
  The usual convention to interpolate capability entries using the special
  .Em tc=value
  notation may be used.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
