Received: by mail.netbsd.org (Postfix, from userid 605) id 8636E14A186; Wed, 18 May 2011 15:28:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 85A5814A18B for ; Wed, 18 May 2011 15:28:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id KJw2q2IyDCUE for ; Wed, 18 May 2011 15:28:12 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id AE42014A17F for ; Wed, 18 May 2011 15:28:12 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 8E85D175DD; Wed, 18 May 2011 15:28:12 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 18 May 2011 15:28:12 +0000 From: "Emmanuel Dreyfus" Subject: CVS commit: src/lib/libperfuse To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20110518152812.8E85D175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Emmanuel Dreyfus" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: manu Date: Wed May 18 15:28:12 UTC 2011 Modified Files: src/lib/libperfuse: ops.c Log Message: - Proper permission checks when doing directory traversal. e.g.: run rm dir/file while dir was never looked up since the mount. In that situation, we get lookup with pcn_nameiop NAMEI_DELETE for dir before we get it for file. But for dir we are just looking for PUFFS_VEXEC. This is solved by honouring NAMEI_ISLASTCN, which is set for the last element only - do not send O_EXCL to FUSE as documentation forbids it. - fix warning To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/lib/libperfuse/ops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.