[PATCH] Fix incorrect OS reporting in uname -o

Patrick 'P. J.' McDermott pj+busybox-ml at pehjota.net
Wed Sep 18 03:47:55 UTC 2013


On 2013-09-17 18:56, Rich Felker wrote:
> -	strcpy(uname_info.os, "GNU/Linux");
> +	strcpy(uname_info.os,
> +#ifdef __GLIBC__
> +		"GNU/"
> +#endif
> +		"Linux");

I'd agree that most BusyBox-based systems can hardly be called
"GNU/Linux", even with glibc.  It seems inappropriate to call a system
"GNU" if it has little or no GNU software.

But I'd call such a system "BusyBox/Linux" instead, since BusyBox is the
userspace, regardless of the C library in my opinion.

-	strcpy(uname_info.os, "GNU/Linux");
+	strcpy(uname_info.os, "BusyBox/Linux");

-- 
Patrick "P. J." McDermott
  http://www.pehjota.net/
Lead Developer, ProteanOS
  http://www.proteanos.com/


More information about the busybox mailing list