Attached find a patch as Matt suggested.
I also fixed set_flags itself, although in our current situation this will have
no effect, since by the time set_flags sees the symlink it will already be a
link. However, I think that set_flags should do the right thing, without relying
on it's caller. Alternatively, the entire handling of symlinks in set_flags
could perhaps be removed? |