summaryrefslogtreecommitdiffstats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorpbrook2006-05-14 13:30:38 +0200
committerpbrook2006-05-14 13:30:38 +0200
commitc59372208a928828dd7d1cceaee78b48e5e03611 (patch)
tree0745c1578da58eec8621dc2bb6f156fbc093fe7d /linux-user/syscall.c
parentUpdate ARM board documentation. (diff)
downloadqemu-c59372208a928828dd7d1cceaee78b48e5e03611.tar.gz
qemu-c59372208a928828dd7d1cceaee78b48e5e03611.tar.xz
qemu-c59372208a928828dd7d1cceaee78b48e5e03611.zip
Teach usermode emulation how to lie about uname -r.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1920 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 7da469aa89..4afc6d888c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2861,6 +2861,9 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
/* Overrite the native machine name with whatever is being
emulated. */
strcpy (buf->machine, UNAME_MACHINE);
+ /* Allow the user to override the reported release. */
+ if (qemu_uname_release && *qemu_uname_release)
+ strcpy (buf->release, qemu_uname_release);
}
unlock_user_struct(buf, arg1, 1);
}