From owner-freebsd-net@FreeBSD.ORG Thu Apr 15 19:24:58 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11A82106566B; Thu, 15 Apr 2010 19:24:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5C36C8FC08; Thu, 15 Apr 2010 19:24:57 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id E64C9A56FE5; Fri, 16 Apr 2010 03:24:55 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id 5HqhStlET1eE; Fri, 16 Apr 2010 03:24:50 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id BE1E0A56FF8; Fri, 16 Apr 2010 03:24:49 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=GVW+60Y3RRBo998qf6X5twTTMVtcFlpYvnrzyCIJuEox/Y2yMwOG4j4ZgMO5u1Cry vx0IttfgQPSr3rdz+epGQ== Message-ID: <4BC767FE.4060504@delphij.net> Date: Thu, 15 Apr 2010 12:24:46 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100408 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org, freebsd-net@freebsd.org X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Recent nc(1) changes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2010 19:24:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Thanks to Dima Panov, we have now figured out a behavior change that could break some ports. I'd like to give some more details for the record. In the past, nc(1) would give a message like "Connection to xxx xxx port [tcp/*] succeeded" if either -v or -z is specified in stdout. In newer nc(1) from OpenBSD, this has been changed to stderr. In -CURRENT, we have followed OpenBSD's behavior. I think, that this behavior is more sensible since one can, say, filter stdout and stderr to two programs/logs to fill their need. This unfortunately would break some ports that uses nc -z's standard output as an indicator of whether the connection is succeeded. To solve this, one can modify the script to use "2>&1" when getting the output, which is compatible to the old nc(1) as well. Another change is that nc(1) now considers '-o' as deprecated. My plan is to remove this option before 9.0-RELEASE. Will this removal be a problem for anyone? Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLx2f+AAoJEATO+BI/yjfBkKMH/2R4J82mJkWJkddZ/XjlmoQq VruKRMu06w3pXpqzMyqt0MXMII8v5x1jRrhusrZnNJ3dLXjpBHj9WqBYLVCskDdf 3etDE4gKK4DH2hhLuK4HOT4fM70OSN/18fDcpbZ7zrIRWoSheQXESZKy9po99y69 ENUhuxgyzDKzOqccArttJbiz6+jrcoDOjRf7ULnegIKaE4B58fAcpqO9A+6UZBHc Rh2OdnQgYI2wpKxihZiklgK7VDQx09Qvl+4UacDC08uu7rBh3cD09UziQHGjnicV MLhFSN/LGNNc2BVb0z4mFOtaP4efYu9Rxuyy1idOJCPg/HD/+2CECNlZm2BWRe8= =azZK -----END PGP SIGNATURE-----