From owner-svn-src-head@FreeBSD.ORG Tue Jun 9 17:18:41 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D052010656C3; Tue, 9 Jun 2009 17:18:41 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BE6C28FC0C; Tue, 9 Jun 2009 17:18:41 +0000 (UTC) (envelope-from alc@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 n59HIfbC078462; Tue, 9 Jun 2009 17:18:41 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n59HIfOe078461; Tue, 9 Jun 2009 17:18:41 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <200906091718.n59HIfOe078461@svn.freebsd.org> From: Alan Cox Date: Tue, 9 Jun 2009 17:18:41 +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: r193845 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 17:18:42 -0000 Author: alc Date: Tue Jun 9 17:18:41 2009 New Revision: 193845 URL: http://svn.freebsd.org/changeset/base/193845 Log: Eliminate an instance of VM_PROT_READ_IS_EXEC that I overlooked in r190705. Modified: head/sys/kern/sysv_shm.c Modified: head/sys/kern/sysv_shm.c ============================================================================== --- head/sys/kern/sysv_shm.c Tue Jun 9 17:12:19 2009 (r193844) +++ head/sys/kern/sysv_shm.c Tue Jun 9 17:18:41 2009 (r193845) @@ -391,11 +391,7 @@ kern_shmat(td, shmid, shmaddr, shmflg) goto done2; } size = round_page(shmseg->shm_bsegsz); -#ifdef VM_PROT_READ_IS_EXEC - prot = VM_PROT_READ | VM_PROT_EXECUTE; -#else prot = VM_PROT_READ; -#endif if ((shmflg & SHM_RDONLY) == 0) prot |= VM_PROT_WRITE; flags = MAP_ANON | MAP_SHARED;