Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cmcl2.UUCP Path: utzoo!linus!philabs!cmcl2!salkind From: salkind@cmcl2.UUCP (Lou Salkind) Newsgroups: net.bugs.4bsd Subject: minor nit in fcntl Message-ID: <1777@cmcl2.UUCP> Date: Fri, 27-Jan-84 20:11:46 EST Article-I.D.: cmcl2.1777 Posted: Fri Jan 27 20:11:46 1984 Date-Received: Sat, 28-Jan-84 06:05:10 EST Organization: New York University Lines: 14 Index: sys/sys/kern_descrip.c 4.2BSD Description: If you try fcntl(fd, F_DUPFD, NOFILE), you get the error EMFILE instead of EINVAL. Repeat-By: fcntl(fd, F_DUPFD, NOFILE); Fix: In fcntl, replace the test if (i < 0 || i > NOFILE) by if (i < 0 || i >= NOFILE) Like I said, a minor nit.