[OpenAFS] Re: Why does 'fs rmm' not resolve symlinks?

Andrew Deason adeason@sinenomine.net
Wed, 21 Apr 2010 09:22:33 -0500


On Wed, 21 Apr 2010 15:41:01 +0200
Arne Wiebalck <arne.wiebalck@cern.ch> wrote:

> Looking into the code of fs I see that 'lsm' resolves
> symlinks before the stat pioctl, while 'rmm' does not.
> Is there any particular reason for this?

You would rather it remove the target of the symlink? 'rm' and 'rmdir'
don't work like that, either.

$ mkdir foo.dir
$ ln -s foo.dir foo.link
$ rmdir foo.link
rmdir: foo.link: Not a directory
$

-- 
Andrew Deason
adeason@sinenomine.net