/etc/passwd and symlinks
Denys Vlasenko
vda.linux at googlemail.com
Thu Nov 8 04:06:49 PST 2007
On Thursday 08 November 2007 10:52, Ralf Friedl wrote:
> Another question is what the function should do if the target of the
> link does not exist. xmalloc_readlink will always return the target
> name, whether it exists or not. I don't know whether this behavior would
> be useful for xmalloc_readlink_follow or not.
I can imagine that people may want to call creat()
on a name which is potentially a dangling link.
This creates link target, if possible
(it may not be: link -> /not_existing_dir/foo).
Returning NULL for dangling links would make it impossible.
--
vda
More information about the busybox
mailing list