From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9020 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Musl bug, or, am I losing my mind? Date: Thu, 31 Dec 2015 04:10:02 +0100 Message-ID: <20151231031002.GB23362@port70.net> References: <1337210970.4152546.1451505881575.JavaMail.yahoo.ref@mail.yahoo.com> <1337210970.4152546.1451505881575.JavaMail.yahoo@mail.yahoo.com> <20151230212832.GA23362@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1451531419 27772 80.91.229.3 (31 Dec 2015 03:10:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 03:10:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9033-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 31 04:10:19 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aETd3-0004je-PV for gllmg-musl@m.gmane.org; Thu, 31 Dec 2015 04:10:17 +0100 Original-Received: (qmail 19892 invoked by uid 550); 31 Dec 2015 03:10:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 19874 invoked from network); 31 Dec 2015 03:10:14 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20151230212832.GA23362@port70.net> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9020 Archived-At: * Szabolcs Nagy [2015-12-30 22:28:33 +0100]: > * Guided Muscle [2015-12-30 20:04:41 +0000]: > > cat o.txt | cdb -c c.cdb > > FAILED: cdb: (stdin): bad format > > > > However > > PASS: cdb -c c.cdb < o.txt > > my guess is that cdb does not handle short reads properly > > but you can see what's going on with strace another guess: if this is a musl based system then there was a gcc bug that broke fflush at exit so cat would truncate the output. again strace can tell if that is the case.