summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2006-09-23 12:25:59 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2006-09-23 12:25:59 +0000
commit85f0edddd511a71d56b3b452ce7a34462421a03c (patch)
tree7fbc5a6760976c6bf29437fa07bee07a0e40e646 /lib/libpthread
parenta7054e0b51a595d01a1165805a8385f0e651b57d (diff)
fix a bug where the logic was reversed
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_fd.c b/lib/libpthread/uthread/uthread_fd.c
index 9cfae2af508..666b94ab20d 100644
--- a/lib/libpthread/uthread/uthread_fd.c
+++ b/lib/libpthread/uthread/uthread_fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_fd.c,v 1.23 2006/09/22 19:04:33 kurt Exp $ */
+/* $OpenBSD: uthread_fd.c,v 1.24 2006/09/23 12:25:58 kurt Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -139,7 +139,7 @@ _thread_fs_flags_replace(int fd, struct fs_flags *new_status_flags)
* Also don't reset fd to blocking if we are replacing
* the status flags with a shared version.
*/
- if (new_status_flags != NULL &&
+ if (new_status_flags == NULL &&
(_thread_sys_fstat(fd, &sb) == 0) &&
((S_ISREG(sb.st_mode) || S_ISCHR(sb.st_mode)) &&
(old_status_flags->flags & O_NONBLOCK) == 0))