uname: bug fix
[rsc] --rw-rw-r-- M 76409 glenda sys 520 Mar 30 08:01 sys/src/ape/lib/ap/plan9/uname.c
/n/sourcesdump/2006/0330/plan9/sys/src/ape/lib/ap/plan9/uname.c:5,15 -
/n/sourcesdump/2006/0331/plan9/sys/src/ape/lib/ap/plan9/uname.c:5,13
int
uname(struct utsname *n)
{
- char *osname;
-
n->sysname = getenv("osname");
if(!n->sysname)
- osname = "Plan9";
+ n->sysname = "Plan9";
n->nodename = getenv("sysname");
if(!n->nodename){
n->nodename = getenv("site");
|