]> arthur.barton.de Git - bup.git/commit
vfs: resolve absolute symlinks inside their particular backup set.
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 26 Jul 2010 04:50:59 +0000 (00:50 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 26 Jul 2010 04:50:59 +0000 (00:50 -0400)
commitac61d0bd7211cac8dba5f7ac62a73a2352c1e658
treed5424933c495ccd240d09954edc12e0a50f96dab
parentf77a082904b0e5e97b28652dc13315652cf41592
vfs: resolve absolute symlinks inside their particular backup set.

Let's say you back up a file "/etc/motd" that's a symlink to
"/var/run/motd".  The file inside the backup repo is actually
/whatever/latest/etc/motd, so the symlink should *actually* point to
/whatever/latest/var/run/motd.  Let's resolve it that way automatically in
Symlink.dereference().

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/vfs.py