aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-05-30 07:33:32 +0000
committerXin LI <delphij@FreeBSD.org>2009-05-30 07:33:32 +0000
commit67feef6e5d7f5a3db338c8408cde9ea5b0667e30 (patch)
treea0658cdf7aabc857afeac6b2a1adff9c4c0fcc7b
parent65b45c166f41c307f0760a9166f096ef7c5c0a89 (diff)
Notes
-rw-r--r--sys/compat/svr4/svr4_stat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_stat.c b/sys/compat/svr4/svr4_stat.c
index 42e612208b83..415faa044cea 100644
--- a/sys/compat/svr4/svr4_stat.c
+++ b/sys/compat/svr4/svr4_stat.c
@@ -458,7 +458,10 @@ svr4_sys_systeminfo(td, uap)
break;
case SVR4_SI_HW_SERIAL:
- snprintf(buf, sizeof(buf), "%lu", hostid);
+ pr = td->td_ucred->cr_prison;
+ mtx_lock(&pr->pr_mtx);
+ snprintf(buf, sizeof(buf), "%lu", pr->pr_hostid);
+ mtx_unlock(&pr->pr_mtx);
str = buf;
break;