From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 12 01:20:23 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87D8E16A4CE for ; Thu, 12 Aug 2004 01:20:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 576A043D1D for ; Thu, 12 Aug 2004 01:20:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i7C1KNFa011660 for ; Thu, 12 Aug 2004 01:20:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7C1KNbG011659; Thu, 12 Aug 2004 01:20:23 GMT (envelope-from gnats) Resent-Date: Thu, 12 Aug 2004 01:20:23 GMT Resent-Message-Id: <200408120120.i7C1KNbG011659@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "David S. Wang" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F99416A4CE for ; Thu, 12 Aug 2004 01:16:19 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4372743D31 for ; Thu, 12 Aug 2004 01:16:19 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7C1GJoh047565 for ; Thu, 12 Aug 2004 01:16:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i7C1GJvu047563; Thu, 12 Aug 2004 01:16:19 GMT (envelope-from nobody) Message-Id: <200408120116.i7C1GJvu047563@www.freebsd.org> Date: Thu, 12 Aug 2004 01:16:19 GMT From: "David S. Wang" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/70336: telnetd always exits with value 1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2004 01:20:23 -0000 >Number: 70336 >Category: bin >Synopsis: telnetd always exits with value 1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 12 01:20:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: David S. Wang >Release: 4.7-RELEASE >Organization: Juniper Networks >Environment: FreeBSD blah.juniper.net 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Thu Nov 6 00:57:58 GMT 2003 dsw@blah.juniper.net:/usr/src/sys/compile/GENERIC-DDB i386 >Description: telnetd seems to always exit with a status of 1. It seems to be hardcoded into telnetd's cleanup() function, even for normal exits. This will cause inetd to always print a message to the syslog when a maximum number of children is configured for telnetd (see bin/70335 for details). That seems to be unnecessary pollution of the syslog to me, and is also unnecessarily alarming in the case that telnetd exits normally. Note that (most?) other daemons do not exit with a status of 1. >How-To-Repeat: Configure inetd.conf to have a finite maximum number of children for telnetd. telnet into the box, then logout normally. Look at the syslog. >Fix: Perhaps all the _exit(1) calls in cleanup() should be changed to _exit(0)? >Release-Note: >Audit-Trail: >Unformatted: