]> arthur.barton.de Git - bup.git/commit
Fix a bug in strip_path when prefix is a symlink
authorZoran Zaric <zz@zoranzaric.de>
Fri, 7 Jan 2011 11:16:24 +0000 (12:16 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 8 Jan 2011 09:48:57 +0000 (01:48 -0800)
commitc1db01d7eb147af48a385457afbbbfdfafeac288
treeb2146ccc1e2efafd550bcee4b27cd6e91cdd5e75
parentf2d396cb9811c6aaa5ea1f500873ccbde9a04149
Fix a bug in strip_path when prefix is a symlink

helpers.realpath() wasn't the right choice for path normalization.
The prefix itself can be a symlink, too.  Now we use os.path.realpath(),
which also follows symlinks for the last element.

Signed-off-by: Zoran Zaric <zz@zoranzaric.de>
lib/bup/helpers.py