diff options
-rw-r--r-- | src/rc/rc-selinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc-selinux.c b/src/rc/rc-selinux.c index ed89be1e..a792fe28 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); |