From owner-cvs-src@FreeBSD.ORG Wed Oct 5 04:42:20 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F83716A41F; Wed, 5 Oct 2005 04:42:20 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39BBB43D46; Wed, 5 Oct 2005 04:42:20 +0000 (GMT) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j954gKV1094671; Wed, 5 Oct 2005 04:42:20 GMT (envelope-from brooks@repoman.freebsd.org) Received: (from brooks@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j954gKdn094670; Wed, 5 Oct 2005 04:42:20 GMT (envelope-from brooks) Message-Id: <200510050442.j954gKdn094670@repoman.freebsd.org> From: Brooks Davis Date: Wed, 5 Oct 2005 04:42:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libutil trimdomain.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 04:42:20 -0000 brooks 2005-10-05 04:42:20 UTC FreeBSD src repository Modified files: lib/libutil trimdomain.c Log: When removing the local domain, only do so when the result will be a host name. This is matches the documented behaviro. The previous behavior would remove the domain name even if the result retained a dot. This fixes rsh connections from a.example.com to example.com. Reviewed by: ceri (at least the concept) Revision Changes Path 1.6 +1 -3 src/lib/libutil/trimdomain.c