Date: Sat, 30 May 2009 07:33:32 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193084 - head/sys/compat/svr4 Message-ID: <200905300733.n4U7XWiE099964@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905300733.n4U7XWiE099964>