From owner-cvs-src@FreeBSD.ORG Sun Jan 7 17:32:17 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 02A2616A40F; Sun, 7 Jan 2007 17:32:17 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id CF7C413C455; Sun, 7 Jan 2007 17:32:16 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l07HWG0o076555; Sun, 7 Jan 2007 17:32:16 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l07HWGLL076554; Sun, 7 Jan 2007 17:32:16 GMT (envelope-from pjd) Message-Id: <200701071732.l07HWGLL076554@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Sun, 7 Jan 2007 17:32:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/sys open.2 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 17:32:17 -0000 pjd 2007-01-07 17:32:16 UTC FreeBSD src repository Modified files: lib/libc/sys open.2 Log: Prefer "to be modified" over "to be opened for writing". This is quite tricky situation, because we allow to open a file with O_RDONLY|O_TRUNC. O_TRUNC modifies a file, but we actually don't open it for writing. EISDIR is also returned when we try to open a directory O_RDONLY|O_TRUNC, which is correct. POSIX says that "The result of using O_TRUNC with O_RDONLY is undefined.", we choose to accept it (Solaris did the same), that's why "to be modified" seems more accurate to me. Revision Changes Path 1.34 +1 -1 src/lib/libc/sys/open.2