- os.path.islink: tell us if is a symbolic link or not
- os.path.exist: tell us if the target exists or is broken
- os.readlink: we can get the link target (if is relative it does not start 
with '/')

We can convert the target path to an absolute path and check if this
path is inside current snapshot. If it is inside (and is not broken) we
can allow user to browse/open it (and display it just italic). If not we
can show it as broken.

-- 
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