svn commit: r193084 - head/sys/compat/svr4
Xin LI
delphij at FreeBSD.org
Sat May 30 07:33:33 UTC 2009
Author: delphij
Date: Sat May 30 07:33:32 2009
New Revision: 193084
URL: http://svn.freebsd.org/changeset/base/193084
Log:
Attempt to fix build by updating hostid to follow the new world order.
Modified:
head/sys/compat/svr4/svr4_stat.c
Modified: head/sys/compat/svr4/svr4_stat.c
==============================================================================
--- head/sys/compat/svr4/svr4_stat.c Sat May 30 07:08:16 2009 (r193083)
+++ head/sys/compat/svr4/svr4_stat.c Sat May 30 07:33:32 2009 (r193084)
@@ -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;
More information about the svn-src-head
mailing list