Module Name:    src
Committed By:   dholland
Date:           Sat May 29 23:08:07 UTC 2010

Modified Files:
        src/libexec/comsat: comsat.8 comsat.c

Log Message:
Update outdated comment (and docs) about which header lines are printed.
I appear to have been carrying this patch around since 2002.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/libexec/comsat/comsat.8
cvs rdiff -u -r1.40 -r1.41 src/libexec/comsat/comsat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/comsat/comsat.8
diff -u src/libexec/comsat/comsat.8:1.13 src/libexec/comsat/comsat.8:1.14
--- src/libexec/comsat/comsat.8:1.13	Fri Jun 25 17:36:04 2004
+++ src/libexec/comsat/comsat.8	Sat May 29 23:08:06 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: comsat.8,v 1.13 2004/06/25 17:36:04 wiz Exp $
+.\"	$NetBSD: comsat.8,v 1.14 2010/05/29 23:08:06 dholland Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     from: @(#)comsat.8	8.1 (Berkeley) 6/4/93
 .\"
-.Dd June 25, 2004
+.Dd May 29, 2010
 .Dt COMSAT 8
 .Os
 .Sh NAME
@@ -65,9 +65,7 @@
 the first 7 lines or 560 characters of the message are printed
 on the user's terminal.
 Lines which appear to be part of the message header other than the
-.Dq From ,
-.Dq \&To ,
-.Dq Date ,
+.Dq From
 or
 .Dq Subject
 lines are not included in the displayed message.

Index: src/libexec/comsat/comsat.c
diff -u src/libexec/comsat/comsat.c:1.40 src/libexec/comsat/comsat.c:1.41
--- src/libexec/comsat/comsat.c:1.40	Sat May 29 23:05:22 2010
+++ src/libexec/comsat/comsat.c	Sat May 29 23:08:06 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: comsat.c,v 1.40 2010/05/29 23:05:22 dholland Exp $	*/
+/*	$NetBSD: comsat.c,v 1.41 2010/05/29 23:08:06 dholland Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -36,7 +36,7 @@
 #if 0
 static char sccsid[] = "from: @(#)comsat.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: comsat.c,v 1.40 2010/05/29 23:05:22 dholland Exp $");
+__RCSID("$NetBSD: comsat.c,v 1.41 2010/05/29 23:08:06 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -261,7 +261,7 @@
 	}
 	cr = (ttybuf.c_oflag & ONLCR) && (ttybuf.c_oflag & OPOST) ?
 	    "\n" : "\n\r";
-	/* Set uid/gid/groups to users in case mail drop is on nfs */
+	/* Set uid/gid/groups to user's in case mail drop is on nfs */
 	if ((p = getpwnam(ep->name)) == NULL ||
 	    initgroups(p->pw_name, p->pw_gid) == -1 ||
 	    setgid(p->pw_gid) == -1 ||
@@ -292,7 +292,7 @@
 	/*
 	 * Print the first 7 lines or 560 characters of the new mail
 	 * (whichever comes first).  Skip header crap other than
-	 * From, Subject, To, and Date.
+	 * From and Subject.
 	 */
 	linecnt = 7;
 	charcnt = 560;

Reply via email to