diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-10-29 06:16:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-10-29 06:16:35 +0000 |
commit | e83494817af5803aa67ba728aa8c331646a03aaa (patch) | |
tree | 0e3ccc20d66efe32727cf205ab7f9e83a75dfb87 | |
parent | 799c5ba94600f974083e396e03905aa7b27e4ec2 (diff) |
delete obscure workaround for a bug in SunOS.
(But leave the VMS workaround intact)
-rw-r--r-- | usr.sbin/rarpd/rarpd.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.sbin/rarpd/rarpd.c b/usr.sbin/rarpd/rarpd.c index fabfd35bec2..6845596f82d 100644 --- a/usr.sbin/rarpd/rarpd.c +++ b/usr.sbin/rarpd/rarpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rarpd.c,v 1.54 2014/10/08 04:58:18 deraadt Exp $ */ +/* $OpenBSD: rarpd.c,v 1.55 2014/10/29 06:16:34 deraadt Exp $ */ /* $NetBSD: rarpd.c,v 1.25 1998/04/23 02:48:33 mrg Exp $ */ /* @@ -437,15 +437,7 @@ rarp_loop(void) /* Don't choke when we get ptraced */ if (cc < 0 && errno == EINTR) goto again; - /* Due to a SunOS bug, after 2^31 bytes, the file - * offset overflows and read fails with EINVAL. The - * lseek() to 0 will fix things. */ if (cc < 0) { - if (errno == EINVAL && - (lseek(fd, (off_t)0, SEEK_CUR) + bufsize) < 0) { - (void) lseek(fd, (off_t)0, SEEK_SET); - goto again; - } error(FATAL, "read: %s", strerror(errno)); /* NOTREACHED */ } |