Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!salkind@nyu
From: salkind%nyu@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: minor nit in fcntl
Message-ID: <16087@sri-arpa.UUCP>
Date: Fri, 27-Jan-84 20:10:56 EST
Article-I.D.: sri-arpa.16087
Posted: Fri Jan 27 20:10:56 1984
Date-Received: Mon, 6-Feb-84 15:11:35 EST
Lines: 17

From:  Lou Salkind 

Subject: minor nit in fcntl
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.