Symlinks can be both absolute or relative. You can compare a symlink to a 
simple text file where is written the destination path. If the symlink is 
relative then the start point is the symlink path.
Ex: path /abc/a
cd /abc
ln -s a b   <= relative symlink to ./a
ln -s /abc/a c => absolute symlink to /abc/a

In python you have:
os.readlink(path)
    Return a string representing the path to which the symbolic link points. 
The result may be either an absolute or relative pathname; if it is relative, 
it may be converted to an absolute pathname using 
os.path.join(os.path.dirname(path), result).
    Changed in version 2.6: If the path is a Unicode object the result will 
also be a Unicode object.
    Availability: Unix.

-- 
Soft links in snapshots should not be browseable
https://bugs.launchpad.net/bugs/447841
You received this bug notification because you are a member of Back In
Time Team, which is subscribed to Back In Time.

Status in Back In Time: In Progress

Bug description:
When browsing soft links in snapshots they take you to the current 
directories/files without notice unless they're relative and completely 
contained in the snapshot. They should have a specific display and browsing 
them should be disabled since they might take you outside the snapshot. Even 
when they would work as expected it would be best showing them as 
non-browseable soft links.

_______________________________________________
Mailing list: https://launchpad.net/~bit-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~bit-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to