From owner-freebsd-current Tue Dec 24 9: 5: 8 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B004F37B401; Tue, 24 Dec 2002 09:05:06 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CB0A43EA9; Tue, 24 Dec 2002 09:05:05 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 24 Dec 2002 17:05:04 +0000 (GMT) Date: Tue, 24 Dec 2002 17:05:03 +0000 From: David Malone To: phk@FreeBSD.ORG Cc: Garrett Wollman , current@FreeBSD.ORG Subject: Re: revoke(2) redux... Message-ID: <20021224170503.GA82503@walton.maths.tcd.ie> References: <200212241442.gBOEgkU5034854@khavrinen.lcs.mit.edu> <1866.1040741525@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1866.1040741525@critter.freebsd.dk> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 24, 2002 at 03:52:05PM +0100, phk@FreeBSD.ORG wrote: > We can then provide revoke(2) as a wrapper: > > revoke(const char *name) > { > int fd, e; > > fd = open(name, O_RDONLY); Assuming you can open the thing name points to. I guess it might be a (NFS) directory or socket. I think revoke used to work on directories for a bit, until someone found it didn't work on named pipes and sockets, and then it was restricted to devices again. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message