Subject: bin/1312: syslog(3) manual page correction
To: None <gnats-bugs@gnats.netbsd.org>
From: Giles Lean <giles@nemeton.com.au>
List: netbsd-bugs
Date: 08/03/1995 21:22:40
>Number:         1312
>Category:       bin
>Synopsis:       example in syslog(3) manual page is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug  3 08:05:01 1995
>Last-Modified:
>Originator:     Giles Lean
>Organization:
Giles Lean                                             Nemeton Pty Ltd
<giles@nemeton.com.au>                           phone: +61 3 480 2118        
>Release:        July 29 1995
>Environment:
	
System: NetBSD topaz.nemeton.com.au 1.0A NetBSD 1.0A (TOPAZ) #12: Sun Jul 30 09:02:49 EST 1995 giles@topaz.nemeton.com.au:/usr/src/sys/arch/i386/compile/TOPAZ i386


>Description:
	(i)  The EXAMPLES section has ftpd logging with LOG_DAEMON.
	     In fact it uses LOG_FTPD.
	(ii) LOG_FTP is missing from the manual page.

>How-To-Repeat:
	$ man 3 syslog
	then view ftpd source.
>Fix:
*** syslog.3.orig	Thu Aug  3 21:15:53 1995
--- syslog.3	Thu Aug  3 21:21:03 1995
***************
*** 180,185 ****
--- 180,187 ----
  System daemons, such as
  .Xr routed 8 ,
  that are not provided for explicitly by other facilities.
+ .It Dv LOG_FTP
+ The Internet File Transfer Protocol daemon.
  .It Dv LOG_KERN
  Messages generated by the kernel.
  These cannot be generated by any user processes.
***************
*** 250,256 ****
  .Bd -literal -offset indent -compact
  syslog(LOG_ALERT, "who: internal error 23");
  
! openlog("ftpd", LOG_PID, LOG_DAEMON);
  setlogmask(LOG_UPTO(LOG_ERR));
  syslog(LOG_INFO, "Connection from host %d", CallingHost);
  
--- 252,258 ----
  .Bd -literal -offset indent -compact
  syslog(LOG_ALERT, "who: internal error 23");
  
! openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP);
  setlogmask(LOG_UPTO(LOG_ERR));
  syslog(LOG_INFO, "Connection from host %d", CallingHost);
  
>Audit-Trail:
>Unformatted: