How to unlink a directory?
Anton Rang
rang at cpsin3.cps.msu.edu
Wed Apr 26 08:37:20 AEST 1989
I have some directories with multiple hard links. I'd like to remove one
of the hard links. Sounds simple, right? How do I do it? Calling
unlink() returns EPERM (even as superuser).... Thanks!
For example:
/abc/def/ghi is hard-linked to /abc/xxx/ghi (via ln -f)
How to remove the /abc/def/ghi link?
[[ I believe that "fsck" is your only recourse. See v7n120 for details on
a bug in "rename" that can unintentionally place you in this situation.
--wnl ]]
More information about the Comp.sys.sun
mailing list