tuse same name that srv.c does - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7cb82e1580db9beab86cf834e84825ffd32afa82
 (DIR) parent 70a3bbd7d4d08c6150d282e5e19c414dbbefec98
 (HTM) Author: rsc <devnull@localhost>
       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(-)
       ---
 (DIR) 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: