Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Oct 2002 19:03:39 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Lars Eggert <larse@ISI.EDU>
Cc:        current <current@FreeBSD.ORG>
Subject:   Re: usermount with devfs 
Message-ID:  <7014.1033664619@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 03 Oct 2002 09:59:24 PDT." <3D9C776C.1000409@isi.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7014.1033664619>