From 4b6f4a115eb835b9a519b50fccd3d4042c018c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 27 Mar 2000 14:38:28 +0200 Subject: [PATCH] Fixed range bug. Rev: src/modules/files/file.c:1.168 --- src/modules/files/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/files/file.c b/src/modules/files/file.c index 9bcf7538ca..3addcb262a 100644 --- a/src/modules/files/file.c +++ b/src/modules/files/file.c @@ -5,7 +5,7 @@ \*/ /**/ #include "global.h" -RCSID("$Id: file.c,v 1.167 2000/03/27 12:38:09 grubba Exp $"); +RCSID("$Id: file.c,v 1.168 2000/03/27 12:38:28 grubba Exp $"); #include "fdlib.h" #include "interpret.h" #include "svalue.h" @@ -2754,8 +2754,8 @@ int pike_make_pipe(int *fds) { int res = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); if (res < 0) return res; - if ((fds[0] > MAX_OPEN_FILEDESCRIPTORS) || - (fds[1] > MAX_OPEN_FILEDESCRIPTORS)) { + if ((fds[0] >= MAX_OPEN_FILEDESCRIPTORS) || + (fds[1] >= MAX_OPEN_FILEDESCRIPTORS)) { close(fds[0]); close(fds[1]); #ifdef EMFILE -- GitLab