tuse same name that srv.c does - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 7cb82e1580db9beab86cf834e84825ffd32afa82
parent 70a3bbd7d4d08c6150d282e5e19c414dbbefec98
Author: rsc 
Date:   Sat, 27 May 2006 07:22:56 +0000

use same name that srv.c does

Diffstat:
  M src/cmd/9pserve.c                   |       4 +---

1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c
t@@ -418,10 +418,8 @@ connthread(void *arg)
                                 }
                                 m->tx.afid = xafid;
                                 m->tx.aname = xaname;
-                                m->tx.uname = estrdup(m->tx.uname);
+                                m->tx.uname = getuser();        /* what srv.c used */
                                 repack(&m->tx, &m->tpkt, c->dotu);
-                                free(m->tx.uname);
-                                m->tx.uname = "XXX";
                         }
                         break;
                 case Twalk: