Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/comsat ignore trailing newline which is included in ...



details:   https://anonhg.NetBSD.org/src/rev/b6cc2090f27f
branches:  trunk
changeset: 507881:b6cc2090f27f
user:      onoe <onoe%NetBSD.org@localhost>
date:      Mon Apr 02 14:57:37 2001 +0000

description:
ignore trailing newline which is included in the message from mail.local.

diffstat:

 libexec/comsat/comsat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 87cbe66a0799 -r b6cc2090f27f libexec/comsat/comsat.c
--- a/libexec/comsat/comsat.c   Mon Apr 02 14:46:48 2001 +0000
+++ b/libexec/comsat/comsat.c   Mon Apr 02 14:57:37 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: comsat.c,v 1.21 2001/03/16 21:39:08 atatat Exp $       */
+/*     $NetBSD: comsat.c,v 1.22 2001/04/02 14:57:37 onoe Exp $ */
 
 /*
  * Copyright (c) 1980, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "from: @(#)comsat.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: comsat.c,v 1.21 2001/03/16 21:39:08 atatat Exp $");
+__RCSID("$NetBSD: comsat.c,v 1.22 2001/04/02 14:57:37 onoe Exp $");
 #endif
 #endif /* not lint */
 
@@ -196,7 +196,7 @@
        offset = strtol(cp + 1, &fn, 10);
        if (errno == ERANGE)
                return;
-       if (fn && *fn) {
+       if (fn && *fn && *fn != '\n') {
                /*
                 * Procmail sends messages to comsat with a trailing colon
                 * and a pathname to the folder where the new message was



Home | Main Index | Thread Index | Old Index