From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 94D6713825A for ; Fri, 13 May 2016 18:00:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DDA2E07A3; Fri, 13 May 2016 18:00:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FCD3E07A3 for ; Fri, 13 May 2016 18:00:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D802833BF44 for ; Fri, 13 May 2016 18:00:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 992D316 for ; Fri, 13 May 2016 18:00:00 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1463161941.3fa9015b8e5610d38366f781a08789e34159b0dc.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-selinux.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 3fa9015b8e5610d38366f781a08789e34159b0dc X-VCS-Branch: master Date: Fri, 13 May 2016 18:00:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8a04950f-258c-412a-8c16-2859bb6c4d0e X-Archives-Hash: de80107f48b82702fca024234b397df9 commit: 3fa9015b8e5610d38366f781a08789e34159b0dc Author: Jason Zaman perfinion com> AuthorDate: Sun Mar 6 08:22:51 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri May 13 17:52:21 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=3fa9015b rc-selinux: access check was backwards src/rc/rc-selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/rc-selinux.c b/src/rc/rc-selinux.c index ed89be1..a792fe2 100644 --- a/src/rc/rc-selinux.c +++ b/src/rc/rc-selinux.c @@ -370,7 +370,7 @@ void selinux_setup(char **argv) * which will open the pty with initrc_devpts_t, if it doesnt exist, * fall back to plain exec */ - if (access("/usr/sbin/open_init_pty", X_OK)) { + if (!access("/usr/sbin/open_init_pty", X_OK)) { if (execvp("/usr/sbin/open_init_pty", argv)) { perror("execvp"); exit(-1);