From owner-cvs-sys Sun Nov 23 04:27:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA06162 for cvs-sys-outgoing; Sun, 23 Nov 1997 04:27:20 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA06108; Sun, 23 Nov 1997 04:25:33 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id EAA09102; Sun, 23 Nov 1997 04:25:00 -0800 (PST) Date: Sun, 23 Nov 1997 04:25:00 -0800 (PST) Message-Id: <199711231225.EAA09102@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern kern_descrip.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/11/23 04:25:00 PST Modified files: sys/kern kern_descrip.c Log: Fixed a missing conversion of retval to p_retval in disabled code. Fixed overflow of FFLAGS() in fcntl(F_SETFL, ...). This was not a security hole, but gave wrong results for silly flags values. E.g., it make fcntl(F_SETFL, -1) equivalent to fcntl(F_SETFL, 0). POSIX requires ignoring the open mode bits in fcntl() (even if they would be invalid for open()). Revision Changes Path 1.45 +3 -3 src/sys/kern/kern_descrip.c