aboutsummaryrefslogtreecommitdiffstats
path: root/sosreport
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-06-07 17:24:33 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-06-07 17:26:57 +0100
commit2ecb69968344f65dbbd7f2a15fcb81aa38ac64f3 (patch)
tree0ad1dba99d02352d6c8dd8c37033ac24a186ff3f /sosreport
parent9ddb154d609af6c57c8c8ede7d7d7fc9932a2ee8 (diff)
downloadsos-2ecb69968344f65dbbd7f2a15fcb81aa38ac64f3.tar.gz
Fix make_path for absolute destination paths
Pythons os.path.join behaviour returns only the last path given when that path is absolute. This means that when make_path() is given an absolute destination path (e.g. /etc/foo) it will return an archive path of '/etc/foo' causing an error when copying into the temporary tree. Check for absolute paths and use lstrip to remove leading instances of os.sep from the string. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'sosreport')
0 files changed, 0 insertions, 0 deletions