Added in missing portions of the stat structure copying function.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 16 Oct 2006 01:54:59 +0000 (21:54 -0400)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 16 Oct 2006 01:54:59 +0000 (21:54 -0400)
--HG--
extra : convert_revision : cfabcb07b2c0c5655a757e8c98999ec3cf791e09

src/sim/syscall_emul.hh

index edd4e331d84a7f1b4aa3d5cce7de73558026b4e7..e79712a197b7a00176e97fce754dfd3c23c5c6df 100644 (file)
@@ -356,6 +356,14 @@ convertStatBuf(target_stat &tgt, host_stat *host, bool fakeTTY = false)
     tgt->st_dev = htog(tgt->st_dev);
     tgt->st_ino = host->st_ino;
     tgt->st_ino = htog(tgt->st_ino);
+    tgt->st_mode = host->st_mode;
+    tgt->st_mode = htog(tgt->st_mode);
+    tgt->st_nlink = host->st_nlink;
+    tgt->st_nlink = htog(tgt->st_nlink);
+    tgt->st_uid = host->st_uid;
+    tgt->st_uid = htog(tgt->st_uid);
+    tgt->st_gid = host->st_gid;
+    tgt->st_gid = htog(tgt->st_gid);
     if (fakeTTY)
         tgt->st_rdev = 0x880d;
     else