Re: how to get fullname from inode_symlink() ?

From: Valdis.Kletnieks@private
Date: Fri Dec 16 2005 - 08:08:00 PST


On Fri, 16 Dec 2005 18:52:45 +0900, NAHieu said:

> So is this a bug, or intentional? If it is not a bug, how can I find
> the fullname of the original file?

In general, you won't be able to get the full pathname of the original.
Consider what happens if the target of the symlink is (for instance):

ln -s ../foo/bar ./baz

At best, you'll get the relative path "../foo/bar" and you'll have to figure
out *a* name for '..' yourself





This archive was generated by hypermail 2.1.3 : Fri Dec 16 2005 - 08:10:07 PST