From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 25 May 2001 23:26:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 25 May 2001 23:25:52 -0400 Received: from pop.gmx.net ([194.221.183.20]:9232 "HELO mail.gmx.net") by vger.kernel.org with SMTP id ; Fri, 25 May 2001 23:25:45 -0400 Message-ID: <3B0F1DF9.238C01B9@gmx.de> Date: Sat, 26 May 2001 05:07:37 +0200 From: Edgar Toernig MIME-Version: 1.0 To: Daniel Phillips CC: Oliver Xymoron , linux-kernel , linux-fsdevel@vger.kernel.org Subject: Re: Why side-effects on open(2) are evil. (was Re: [RFD w/info-PATCH]device arguments from lookup) In-Reply-To: <0105241925230N.06233@starship> <3B0D763C.26991788@gmx.de> <0105251300000V.06233@starship> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Daniel Phillips wrote: > > Oops, oh wait, there's already another open point: your breakage > examples both rely on opening ".". You're right, "." should always be > a directory and I believe that's enforced by the VFS. So we don't have > an example of breakage yet. That's just because I did a simple "ls". But it doesn't make a difference. The magicdevs _are_ directories and chdir("magicdev"); open(".", O_RDONLY); shouldn't open the device. Ciao, ET.