It seems that using the directory's mode bits etc. for a symbolic link's is leading to problems. Has anyone considered using the link's target's mode bits if the target exists and the directory's mode bits if there is no target?