Subject: bin/12396: incorrect example in login.conf(5)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jbernard@mines.edu>
List: netbsd-bugs
Date: 03/12/2001 15:35:09
>Number:         12396
>Category:       bin
>Synopsis:       incorrect example in login.conf(5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 12 14:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jim Bernard
>Release:        March 12, 2001
>Organization:
>Environment:
System: NetBSD nool 1.5R NetBSD 1.5R (NOOL-$Revision: 1.16 $) #0: Fri Feb 9 20:20:14 MST 2001 jbernard@nool:/home/tmp/compile/sys/arch/i386/compile/NOOL i386
Architecture: i386
Machine: i386
>Description:
	The example:

           classname|Description entry:\
                   capability=value:\
                   booleancapability:\
                           ...
                   lastcapability=value:

	in login.conf(5) is incorrect.  Capability names begun on lines
	with leading whitespace contain the whitespace, and so are not
	recognized.  The correct approach requires a leading ':' on
	continuation lines (like termcap, printcap, etc.).

>How-To-Repeat:
	Construct /etc/login.conf containing:

	   default:\
		hushlogin:

	and log in as a user belonging to the default class.  The motd
	file and other noise will be printed as usual.  Then place a
	colon before the "h" in hushlogin and log in again.  This time
	the noise will be absent.

>Fix:
--- login.conf.5-dist	Mon Dec 18 06:28:21 2000
+++ login.conf.5	Mon Mar 12 15:24:46 2001
@@ -69,14 +69,14 @@
 .Xr getcap 3
 for a description of the file layout.
 An example entry is:
 .Bd -literal -offset indent
 classname|Description entry:\\
-	capability=value:\\
-	booleancapability:\\
+	:capability=value:\\
+	:booleancapability:\\
 		\&.\&.\&.
-	lastcapability=value:
+	:lastcapability=value:
 .Ed
 .Pp
 All entries in the
 .Nm login.conf
 file are either boolean or use a `=' to separate the capability
>Release-Note:
>Audit-Trail:
>Unformatted: