From owner-freebsd-questions@FreeBSD.ORG Wed Oct 17 17:07:03 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEBF816A418 for ; Wed, 17 Oct 2007 17:07:03 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id D1C9513C481 for ; Wed, 17 Oct 2007 17:07:03 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay12.apple.com (relay12.apple.com [17.128.113.53]) by mail-out3.apple.com (Postfix) with ESMTP id A1C04156A9B6; Wed, 17 Oct 2007 10:07:03 -0700 (PDT) Received: from relay12.apple.com (unknown [127.0.0.1]) by relay12.apple.com (Symantec Mail Security) with ESMTP id 831B92808E; Wed, 17 Oct 2007 10:07:03 -0700 (PDT) X-AuditID: 11807135-a1f00bb000003beb-96-471641377813 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay12.apple.com (Apple SCV relay) with ESMTP id 657F32808D; Wed, 17 Oct 2007 10:07:03 -0700 (PDT) In-Reply-To: <00e501c81059$4baa60d0$1200a8c0@hermes> References: <200710170005.l9H05BYR092267@himinbjorg.tucs-beachin-obx-house.com> <00e501c81059$4baa60d0$1200a8c0@hermes> Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <05D9E87B-8DDC-4DCA-89A0-C8B1EB361160@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Wed, 17 Oct 2007 10:07:02 -0700 To: Matt Emmerton X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: "Tuc at T-B-O-H.NET" , freebsd-questions@freebsd.org Subject: Re: syslog marking sendmail output as "kernel:" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 17:07:04 -0000 On Oct 16, 2007, at 6:01 PM, Matt Emmerton wrote: > There must be somewhere in the kernel where we're writing to the > syslog with an empty error string. The syslog routines expect a > newline-terminated character string, so the lack of a newline > causes the next entry to be on the same line as the (non-existant) > kernel message. Actually, syslog should be just fine without getting a trailing newline; from the manpage: " The message is identical to a printf(3) format string, except that `%m' is replaced by the current error message. (As denoted by the global variable errno; see strerror(3).) A trailing newline is added if none is present." -- -Chuck