From owner-freebsd-questions@FreeBSD.ORG Thu Aug 19 02:18:01 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63BCD16A4CE for ; Thu, 19 Aug 2004 02:18:01 +0000 (GMT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 251F843D4C for ; Thu, 19 Aug 2004 02:18:01 +0000 (GMT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 521BD2BD9F for ; Thu, 19 Aug 2004 12:17:59 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 26D0F51202; Thu, 19 Aug 2004 11:47:57 +0930 (CST) Date: Thu, 19 Aug 2004 11:47:57 +0930 From: Greg 'groggy' Lehey To: David Kelly Message-ID: <20040819021757.GL81574@wantadilla.lemis.com> References: <6.1.2.0.0.20040816220030.04148ec0@mail1.simplenet.com> <20040817052403.GE88156@wantadilla.lemis.com> <6BDB5047-F05D-11D8-8B80-000393BB56F2@HiWAAY.net> <20040817231447.GM88156@wantadilla.lemis.com> <22C619E6-F185-11D8-B845-000393BB56F2@HiWAAY.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0qVF/w3MHQqLSynd" Content-Disposition: inline In-Reply-To: <22C619E6-F185-11D8-B845-000393BB56F2@HiWAAY.net> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: FreeBSD_Questions FreeBSD_Questions Subject: Re: hard links for directories ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2004 02:18:01 -0000 --0qVF/w3MHQqLSynd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [Format recovered--see http://www.lemis.com/email/email-format.html] On Wednesday, 18 August 2004 at 21:11:52 -0500, David Kelly wrote: > On Aug 17, 2004, at 6:14 PM, Greg 'groggy' Lehey wrote: >>> Root is the only one allowed to make hard links to directories. >> >> This is not correct. root has no special powers here. > > OK, I'm a bit out of date and stand corrected. IIRC fsck used link(2) > to reconnect an inode as a directory sometimes. "man 2 link" says: > >> The link() system call traditionally allows the super-user to link >> directories which corrupts the file system coherency. This >> implementation no longer permits it. Ah, interesting. I didn't know that. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --0qVF/w3MHQqLSynd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFBJA3VIubykFB6QiMRAnQTAKCELwOdzL0k9kaTXjiIXTaiIceM8QCglgN5 NeBG3eEU/e5hiAl8pZDpM4I= =qnXE -----END PGP SIGNATURE----- --0qVF/w3MHQqLSynd--