From owner-freebsd-current Mon Oct 28 10:10:55 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA16849 for current-outgoing; Mon, 28 Oct 1996 10:10:55 -0800 (PST) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA16840 for ; Mon, 28 Oct 1996 10:10:50 -0800 (PST) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id KAA18897; Mon, 28 Oct 1996 10:10:19 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma018890; Mon Oct 28 10:09:59 1996 Received: (from archie@localhost) by bubba.whistle.com (8.7.5/8.6.12) id KAA17366; Mon, 28 Oct 1996 10:09:58 -0800 (PST) From: Archie Cobbs Message-Id: <199610281809.KAA17366@bubba.whistle.com> Subject: Re: Strange bug related to fstat() In-Reply-To: <199610280659.HAA02709@uriah.heep.sax.de> from J Wunsch at "Oct 28, 96 07:59:46 am" To: joerg_wunsch@uriah.heep.sax.de Date: Mon, 28 Oct 1996 10:09:58 -0800 (PST) Cc: freebsd-current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > Within a little background daemon, the system() command is used > > to execute a command looking something like this: > > > > system("tar cf - file1 file2 | gzip -cf | uuencode files > output"); > > Btw., would it work using `tar czf -' instead? Yes... but the weirdness remains unexplained. > > The only other possibilities seem to be a bug in /bin/sh or the > > kernel. As you can see, I need a little hint as to how to pursue > > this one... > > Try to ktrace this and look what the fstat() is getting as its file > descriptor. I did add code to print out fileno(stdin) right before the fstat(), and it was zero, as expected... -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com