commit:     3fa9015b8e5610d38366f781a08789e34159b0dc
Author:     Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Sun Mar  6 08:22:51 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> 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);

Reply via email to