summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-08-28 20:20:56 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-08-28 20:20:56 +0000
commitabb92534be6332847945f21b60da81b24a1fda86 (patch)
tree71602794d00a8473e36e1712eec6453d5320e269 /usr.bin/ssh
parentd2191e3b6940ab16ed85b4e28d5aae61658e4d05 (diff)
util.c
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/util.c b/usr.bin/ssh/util.c
index 3b221924e08..7085a2c07fb 100644
--- a/usr.bin/ssh/util.c
+++ b/usr.bin/ssh/util.c
@@ -1,5 +1,5 @@
#include "includes.h"
-RCSID("$OpenBSD: util.c,v 1.1 2000/08/01 19:01:42 provos Exp $");
+RCSID("$OpenBSD: util.c,v 1.2 2000/08/28 20:20:55 markus Exp $");
#include "ssh.h"
@@ -37,7 +37,9 @@ set_nonblock(int fd)
debug("fd %d setting O_NONBLOCK", fd);
val |= O_NONBLOCK;
if (fcntl(fd, F_SETFL, val) == -1)
- error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", fd, strerror(errno));
+ if (errno != ENODEV)
+ error("fcntl(%d, F_SETFL, O_NONBLOCK): %s",
+ fd, strerror(errno));
}
/* Characters considered whitespace in strsep calls. */