[PATCH] Fix incorrect OS reporting in uname -o

Rich Felker dalias at aerifal.cx
Wed Sep 18 11:05:28 UTC 2013


On Wed, Sep 18, 2013 at 05:29:48PM +0800, ChenQi wrote:
> On 09/18/2013 04:47 PM, Pere wrote:
> >On Wed, Sep 18, 2013 at 9:18 AM, Laurent Bercot
> ><ska-dietlibc at skarnet.org> wrote:
> >>>But I'd call such a system "BusyBox/Linux" instead, since BusyBox is the
> >>>userspace, regardless of the C library in my opinion.
> >>
> >>  How do you know for sure ?
> >
> >Because this is Busybox's uname.
> 
> I think it's possible that there are several uname providers in the
> system, and busybox is just one of them.
> "Invoking busybox" != "The userpace is busybox"

This is why my patch simply proposes removing the incorrect "GNU/"
part of the uname rather than assuming some other name applies. If
others would prefer removing the "GNU/" prefix unconditionally, I have
no objection, but my intent was to be conservative and merely remove
it in cases where there's no justification for calling the system a
"GNU/Linux" system.

Rich


More information about the busybox mailing list