aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index af9199364049..069d9aa14205 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -901,16 +901,21 @@ static struct p9_stat *p9_clone_stat(struct p9_stat *st, int dotu)
901 memmove(ret, st, sizeof(struct p9_stat)); 901 memmove(ret, st, sizeof(struct p9_stat));
902 p = ((char *) ret) + sizeof(struct p9_stat); 902 p = ((char *) ret) + sizeof(struct p9_stat);
903 memmove(p, st->name.str, st->name.len); 903 memmove(p, st->name.str, st->name.len);
904 ret->name.str = p;
904 p += st->name.len; 905 p += st->name.len;
905 memmove(p, st->uid.str, st->uid.len); 906 memmove(p, st->uid.str, st->uid.len);
907 ret->uid.str = p;
906 p += st->uid.len; 908 p += st->uid.len;
907 memmove(p, st->gid.str, st->gid.len); 909 memmove(p, st->gid.str, st->gid.len);
910 ret->gid.str = p;
908 p += st->gid.len; 911 p += st->gid.len;
909 memmove(p, st->muid.str, st->muid.len); 912 memmove(p, st->muid.str, st->muid.len);
913 ret->muid.str = p;
910 p += st->muid.len; 914 p += st->muid.len;
911 915
912 if (dotu) { 916 if (dotu) {
913 memmove(p, st->extension.str, st->extension.len); 917 memmove(p, st->extension.str, st->extension.len);
918 ret->extension.str = p;
914 p += st->extension.len; 919 p += st->extension.len;
915 } 920 }
916 921