From owner-freebsd-current Thu Oct 3 10: 4:11 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 BD0F737B401 for ; Thu, 3 Oct 2002 10:04:09 -0700 (PDT) Received: from critter.freebsd.dk (esplanaden.cybercity.dk [212.242.40.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80DB043E3B for ; Thu, 3 Oct 2002 10:04:08 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id g93H3dZ5007015; Thu, 3 Oct 2002 19:03:40 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Lars Eggert Cc: current Subject: Re: usermount with devfs In-Reply-To: Your message of "Thu, 03 Oct 2002 09:59:24 PDT." <3D9C776C.1000409@isi.edu> Date: Thu, 03 Oct 2002 19:03:39 +0200 Message-ID: <7014.1033664619@critter.freebsd.dk> From: Poul-Henning Kamp 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 In message <3D9C776C.1000409@isi.edu>, Lars Eggert writes: >[root@nik: /etc] rm /dev/acd0c >[root@nik: /etc] umask 0007 && ln -s /dev/acd0c /dev/acd0 >ln: /dev/acd0: File exists > >Which is really a strange error, since /dev/acd0c is gone: Nothing which the kernel has created in /dev/ is really gone when you rm(1) it, it merely gets hidden. Think of it as "the kernel has priority in selecting names". Now, if you had rm /dev/null you could recreate it with mknod /dev/null c 0 0 (the "c 0 0" arguments have to be there, but are ignored). I guess it's a flaw that you can't recreate the symlink in a similar fashion. noted. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message