From owner-freebsd-stable@freebsd.org Tue Aug 23 11:12:07 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9AFDEBC325D for ; Tue, 23 Aug 2016 11:12:07 +0000 (UTC) (envelope-from ardovm@yahoo.it) Received: from nm34-vm8.bullet.mail.ir2.yahoo.com (nm34-vm8.bullet.mail.ir2.yahoo.com [212.82.97.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 032A71CBC for ; Tue, 23 Aug 2016 11:12:06 +0000 (UTC) (envelope-from ardovm@yahoo.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.it; s=s2048; t=1471950568; bh=LioJVLFrQdyAtQwKZ23cYBMlhiTfy4gldYcfrEwMU84=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=PFb+LaXZB4tmqOas9qzdzJD1G5VfYgPUQsg0ksRyQHr4lyYQUWW9j0lVp1Fn8EXb2jKkzfUDbZymShNDoPqdpGWsGaQFGwSdHeHJOCiyr7jI7pnoN6AOGdoYgesExtsMAwPwIgwdiKuLiK0yFtLkbxN6UqLGdyuqfh0txBXOheRlJxhy+xYamJ4gTQCPuVysKT7oU8nZJH0BF8HsqRq5nDjgm+isH7xmzaYLEHvUoRWPIP43cb8ivoIq8spTGpDghJ8GM2N+EtLZje/VRX/33k4wYu6OMJNXMAZlaNByKrJqk0BWidGOiclkWRcRhtY2X1VRCRXGJ0yrmMkYR0J9oA== Received: from [212.82.98.55] by nm34.bullet.mail.ir2.yahoo.com with NNFMP; 23 Aug 2016 11:09:28 -0000 Received: from [46.228.39.105] by tm8.bullet.mail.ir2.yahoo.com with NNFMP; 23 Aug 2016 11:09:28 -0000 Received: from [127.0.0.1] by smtp142.mail.ir2.yahoo.com with NNFMP; 23 Aug 2016 11:09:28 -0000 X-Yahoo-Newman-Id: 654863.48852.bm@smtp142.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: pb06TgkVM1lDV5za6bZoHtMSdLqUXOpyN7zf3_LifLffyXR Iw1Hn9f2HgH.L7hxkzBvwZt.hk51iOGsR5FJQJLvt_DS3omQX9vEpGMqdUtY 6NWuQ53xtvZac8VZKR7rdrvKF9u31nLqCW0uV7UwSfhE8liieV34MqsZSJgg LSiQ0vA0ovxQHcx0K1sTOMtghXfXm0AwUWZ8_sMHgpQEHDObAkh2VU_V63XU 8PurXYayIDIauYS2p7lepQ1grDr19Y8uVSjfOUdvK9Vc81Dce9sbwSalaORe .Sm2cVajdh9MeSN_r9h_fMQPkFE3LqoCgO.BrBCWsFmwnRPPeAzI8EMf4vt7 uSp2Xnki23S_QfTGbjUIS68fcplSInP8cBkOnC0UHXyZfIYa27TbaV2ROFNQ ENOaB24sMx2PIUeGV9TTke.xmr0ezr3SWbHD_9Z8K3AppuB22zkXY.YJixy9 bQT0G.ZMcxpC.vTCI_FyVHNn3aZCIndaXUyeaAHxfQ4NP312xxJL8MmYY.EE tnnh8BdH4ZxCNE0zf7580N9s5PFZUe1eJ597IEXEMzwmRkrEV X-Yahoo-SMTP: WU.IBxeswBAAnLcBZV3tEZIK0A-- Received: by nuvolo.localdomain (Postfix, from userid 1001) id B24001D6E49; Tue, 23 Aug 2016 13:09:26 +0200 (CEST) Date: Tue, 23 Aug 2016 13:09:26 +0200 From: Arrigo Marchiori To: schmidt@ze.tum.de Cc: freebsd-stable Subject: Re: Problems with piped tar Message-ID: <20160823110926.GB76750@nuvolo> References: <96b7f57f-74ac-9445-1d04-61327ab111dc@ze.tum.de> <6a841a00-6765-f1a2-02c3-9ce87ec595e8@ze.tum.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6a841a00-6765-f1a2-02c3-9ce87ec595e8@ze.tum.de> User-Agent: Mutt/1.6.1 (2016-04-27) Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2016 11:12:07 -0000 Hello, On Tue, Aug 23, 2016 at 09:35:12AM +0200, Gerhard Schmidt wrote: > Am 23.08.2016 um 09:18 schrieb Daniel Braniss: > >=20 > >> On 23 Aug 2016, at 10:06, Gerhard Schmidt wrote: > >> > >> Hi, > >> > >> i'm quite often use tar to copy files using > >> > >> tar cf - /some/dir | (cd /dest/dir; tar xvvf - ) > > the =E2=80=98new=E2=80=99 way: > > tar cf - /some/dir | tar xvvd - -C /dest/dir > > which of course does not explain way your version hangs, but this one= is cleaner, and btw, don=E2=80=99t > > include /. >=20 > that's very strange. It's working, but doesn't solve another related > problem. When i pipe the tar thru nc a have the same problem as my > version. And it's no difference if there is a tar c an the receiving en= d > of nc or just a '> file.tar' Maybe you are not invoking nc(1) with the -N option? >From the manual page: >>>> -N shutdown(2) the network socket after EOF on the input. = Some >>>> servers require this to finish their work. I hope this helps. Regards, --=20 rigo http://rigo.altervista.org