summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_fcntl.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-08-29 17:59:52 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-08-29 17:59:52 +0000
commit318bef9e03cb60ccdd29f61c5d7667655a6433c2 (patch)
tree4757c5a5eacc8ff763c9df69ebbb868cba4f3f55 /sys/compat/svr4/svr4_fcntl.c
parentd2b9d2acddd536dcfef89eda98626c04a528b4e6 (diff)
if O_NOCTTY is supplied to open(2) do *not* aquire a controlling tty
Diffstat (limited to 'sys/compat/svr4/svr4_fcntl.c')
-rw-r--r--sys/compat/svr4/svr4_fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c
index aec986a376c..91a269cc917 100644
--- a/sys/compat/svr4/svr4_fcntl.c
+++ b/sys/compat/svr4/svr4_fcntl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_fcntl.c,v 1.6 1997/08/07 09:16:20 niklas Exp $ */
+/* $OpenBSD: svr4_fcntl.c,v 1.7 1997/08/29 17:59:51 kstailey Exp $ */
/* $NetBSD: svr4_fcntl.c,v 1.14 1995/10/14 20:24:24 christos Exp $ */
/*
@@ -261,7 +261,7 @@ svr4_sys_open(p, v, retval)
if (error)
return error;
- if ((SCARG(&cup, flags) & O_NOCTTY) && SESS_LEADER(p) &&
+ if (!(SCARG(&cup, flags) & O_NOCTTY) && SESS_LEADER(p) &&
!(p->p_flag & P_CONTROLT)) {
struct filedesc *fdp = p->p_fd;
struct file *fp = fdp->fd_ofiles[*retval];