mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: curious file access problem
Date: Wed, 19 Aug 2015 22:56:56 -0400	[thread overview]
Message-ID: <20150820025656.GS32742@brightrain.aerifal.cx> (raw)
In-Reply-To: <55D5274D.2020903@dd-wrt.com>

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


  reply	other threads:[~2015-08-20  2:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20  0:44 SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Christian Lamparter
2015-08-20  1:03 ` curious file access problem Sebastian Gottschall
2015-08-20  2:56   ` Rich Felker [this message]
2015-08-20  6:48   ` Bastian Bittorf
2015-08-20 10:55     ` Sebastian Gottschall
2015-08-20 13:25       ` Bastian Bittorf
2015-08-20 13:48         ` Rich Felker
2015-08-20 14:26           ` Bastian Bittorf
2015-08-20 14:32             ` Rich Felker
2015-08-20 14:51           ` Sebastian Gottschall
2015-08-20 15:00             ` Rich Felker
2015-08-20 18:30               ` Timo Teras
2015-08-20 21:03                 ` Sebastian Gottschall
2015-08-20 21:46                 ` Sebastian Gottschall
2015-08-20 14:14   ` Bastian Bittorf
2015-08-20  1:34 ` SuperH conflict of arch/sh/__set_thread_area vs thread/__set_thread_area Bobby Bingham
2015-08-20  3:04 ` Rich Felker
2015-08-20 10:21   ` Christian Lamparter
2015-08-21 14:07     ` Christian Lamparter
2015-08-21 14:23       ` Rich Felker
2015-08-25  7:48         ` Felix Fietkau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150820025656.GS32742@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).