aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pserve.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-05-27 07:22:56 +0000
committerrsc <devnull@localhost>2006-05-27 07:22:56 +0000
commit7cb82e1580db9beab86cf834e84825ffd32afa82 (patch)
tree0bf26d8b867c13b8f555016fc3c3f07d6c463ab7 /src/cmd/9pserve.c
parent70a3bbd7d4d08c6150d282e5e19c414dbbefec98 (diff)
downloadplan9port-7cb82e1580db9beab86cf834e84825ffd32afa82.tar.gz
plan9port-7cb82e1580db9beab86cf834e84825ffd32afa82.tar.bz2
plan9port-7cb82e1580db9beab86cf834e84825ffd32afa82.zip
use same name that srv.c does
Diffstat (limited to 'src/cmd/9pserve.c')
-rw-r--r--src/cmd/9pserve.c4
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: