summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-05-30 07:33:32 +0000
committerdelphij <delphij@FreeBSD.org>2009-05-30 07:33:32 +0000
commit7059dd02fa8ac8944e14eca5897ec27371c19d5d (patch)
treea0658cdf7aabc857afeac6b2a1adff9c4c0fcc7b /sys/compat/svr4
parent5c79b23a337b3f9629ba027193a3633b1bc2d46a (diff)
downloadFreeBSD-src-7059dd02fa8ac8944e14eca5897ec27371c19d5d.zip
FreeBSD-src-7059dd02fa8ac8944e14eca5897ec27371c19d5d.tar.gz
Attempt to fix build by updating hostid to follow the new world order.
Diffstat (limited to 'sys/compat/svr4')
-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 42e6122..415faa0 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;
OpenPOWER on IntegriCloud