diff options
author | rsc <devnull@localhost> | 2006-03-03 16:34:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-03-03 16:34:49 +0000 |
commit | b5c7be2fd69c027f5de9772e117885cb1c89f907 (patch) | |
tree | 29a86fbdf95bb0a8823cdafd3819ac90cc5106d6 /src/lib9 | |
parent | 1190a7aa7a1dba5964688c4bb8ee09fc8930c488 (diff) | |
download | plan9port-b5c7be2fd69c027f5de9772e117885cb1c89f907.tar.gz plan9port-b5c7be2fd69c027f5de9772e117885cb1c89f907.tar.bz2 plan9port-b5c7be2fd69c027f5de9772e117885cb1c89f907.zip |
change Tcreate message in 9P2000.u
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/convM2S.c | 2 | ||||
-rw-r--r-- | src/lib9/convS2M.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib9/convM2S.c b/src/lib9/convM2S.c index 23b688ab..3df83da2 100644 --- a/src/lib9/convM2S.c +++ b/src/lib9/convM2S.c @@ -161,6 +161,8 @@ convM2Su(uchar *ap, uint nap, Fcall *f, int dotu) p += BIT32SZ; f->mode = GBIT8(p); p += BIT8SZ; + if(dotu) + p = gstring(p, ep, &f->extension); break; case Tread: diff --git a/src/lib9/convS2M.c b/src/lib9/convS2M.c index b59d95b4..b01a0221 100644 --- a/src/lib9/convS2M.c +++ b/src/lib9/convS2M.c @@ -102,6 +102,8 @@ sizeS2Mu(Fcall *f, int dotu) n += stringsz(f->name); n += BIT32SZ; n += BIT8SZ; + if(dotu) + n += stringsz(f->extension); break; case Tread: @@ -287,6 +289,8 @@ convS2Mu(Fcall *f, uchar *ap, uint nap, int dotu) p += BIT32SZ; PBIT8(p, f->mode); p += BIT8SZ; + if(dotu) + p = pstring(p, f->extension); break; case Tread: |