In message <[EMAIL PROTECTED]>, 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
[EMAIL PROTECTED] | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message