summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-15 16:38:04 +0000
committerderaadt <deraadt@openbsd.org>2015-10-15 16:38:04 +0000
commit3f3589673062584cd84d5c702926b2f74131854b (patch)
tree23e9cf3713f3989b5ae8d5e4fcf681198589c288
parentremove '!' (subshell) and 'v' (edit) commands from ramdisk more(1) command. (diff)
downloadwireguard-openbsd-3f3589673062584cd84d5c702926b2f74131854b.tar.xz
wireguard-openbsd-3f3589673062584cd84d5c702926b2f74131854b.zip
Handle F_ISATTY in the fcntl() stub as well
ok guenther
-rw-r--r--lib/librthread/rthread_cancel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librthread/rthread_cancel.c b/lib/librthread/rthread_cancel.c
index 283a86a6c43..0a7a35cdb44 100644
--- a/lib/librthread/rthread_cancel.c
+++ b/lib/librthread/rthread_cancel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_cancel.c,v 1.9 2014/08/31 20:23:10 guenther Exp $ */
+/* $OpenBSD: rthread_cancel.c,v 1.10 2015/10/15 16:38:04 deraadt Exp $ */
/* $snafu: libc_tag.c,v 1.4 2004/11/30 07:00:06 marc Exp $ */
/* PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc@snafu.org> */
@@ -200,6 +200,7 @@ fcntl(int fd, int cmd, ...)
case F_GETFD:
case F_GETFL:
case F_GETOWN:
+ case F_ISATTY:
rv = _thread_sys_fcntl(fd, cmd);
break;
case F_GETLK: