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 _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
