From owner-svn-src-all@FreeBSD.ORG Sat May 30 07:33:32 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AED83106564A; Sat, 30 May 2009 07:33:32 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9D1AE8FC1A; Sat, 30 May 2009 07:33:32 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4U7XWjq099965; Sat, 30 May 2009 07:33:32 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4U7XWiE099964; Sat, 30 May 2009 07:33:32 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <200905300733.n4U7XWiE099964@svn.freebsd.org> From: Xin LI Date: Sat, 30 May 2009 07:33:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193084 - head/sys/compat/svr4 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2009 07:33:33 -0000 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;