diff options
-rw-r--r-- | src/cmd/9pserve.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c index b3cdbaed..deb1b301 100644 --- a/src/cmd/9pserve.c +++ b/src/cmd/9pserve.c @@ -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: |