Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 10 Oct 2001 18:21:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 10 Oct 2001 18:21:07 -0400 Received: from sweetums.bluetronic.net ([66.57.88.6]:25537 "EHLO sweetums.bluetronic.net") by vger.kernel.org with ESMTP id ; Wed, 10 Oct 2001 18:20:53 -0400 Date: Wed, 10 Oct 2001 18:21:01 -0400 (EDT) From: Ricky Beam X-X-Sender: To: Mingming cao cc: linux-kernel Subject: Re: [PATCH]Fix bug:rmdir could remove current working directory In-Reply-To: <3BC4E8AD.72F175E3@us.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Oct 2001, Mingming cao wrote: >I read the man page of >rmdir(2). It says in this case EBUSY error should be returned. I >suspected this is a bug and added a check in vfs_rmdir(). The following >patch is against 2.4.10 and has been verified. Please comment and >apply. The bug is in the manpage. This was discussed over a year ago (some time after 2.1.44 introduced dcache (it was broken then, but that's when it appeared.)) --Ricky - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/