From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8337 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: curious file access problem Date: Wed, 19 Aug 2015 22:56:56 -0400 Message-ID: <20150820025656.GS32742@brightrain.aerifal.cx> References: <5769061.FLTLqujSyv@debian64> <55D5274D.2020903@dd-wrt.com> 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 1440039438 31674 80.91.229.3 (20 Aug 2015 02:57:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2015 02:57:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8349-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 20 04:57:18 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 1ZSG2W-0005ws-69 for gllmg-musl@m.gmane.org; Thu, 20 Aug 2015 04:57:16 +0200 Original-Received: (qmail 23628 invoked by uid 550); 20 Aug 2015 02:57:12 -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 23603 invoked from network); 20 Aug 2015 02:57:10 -0000 Content-Disposition: inline In-Reply-To: <55D5274D.2020903@dd-wrt.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8337 Archived-At: On Thu, Aug 20, 2015 at 03:03:09AM +0200, Sebastian Gottschall wrote: > Hello Guys > > can someone explain why a file read operation on /proc/net/route > will return everything but the default gateway? > this happens only with musl and does for sure affect the command > "route" in busybox > > here a short example of this curiosity > strings does not print the default gateway. > cat does print it with default gateway Which package is the strings command you're using coming from? Have you looked at strace output for both commands? That might help determine if it's something weird with how the reading is taking place, or if strings is just deciding via its own logic that the one line is non-text. BTW in the future please send a new email rather than replying to an existing thread to start a new topic. The way you did it messes up threading. Just changing the subject does not start a new thread. Rich