From owner-cvs-src@FreeBSD.ORG Tue Jan 16 15:17:28 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 2E81816A407; Tue, 16 Jan 2007 15:17:28 +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 0855113C448; Tue, 16 Jan 2007 15:17:28 +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 l0GFHRmi044303; Tue, 16 Jan 2007 15:17:27 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0GFHRVM044302; Tue, 16 Jan 2007 15:17:27 GMT (envelope-from pjd) Message-Id: <200701161517.l0GFHRVM044302@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Tue, 16 Jan 2007 15:17:27 +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 chmod.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: Tue, 16 Jan 2007 15:17:28 -0000 pjd 2007-01-16 15:17:27 UTC FreeBSD src repository Modified files: lib/libc/sys chmod.2 Log: When we try to set set-gid bit with chmod(2) on a file, which we own, but our effective group ID (and any of our group) doesn't match the group ID of the file, we get EPERM. This doesn't conform POSIX. POSIX requires that we should return 0, but silently clear the set-gid bit. Revision Changes Path 1.37 +5 -1 src/lib/libc/sys/chmod.2