aboutsummaryrefslogtreecommitdiffstats
path: root/__run__.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-11-30 16:55:15 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-11-30 16:55:15 +0000
commitcc5313646f61a5272073bfac012e7bf6c1367311 (patch)
treec2cee41b68370e3e1e3d881208a27fd85fca9639 /__run__.py
parentb43b3458042a863627aab4ebc82d84dafae1e437 (diff)
downloadsos-cc5313646f61a5272073bfac012e7bf6c1367311.tar.gz
Fix symlink handling in doCopyFileOrDir()
Symlinks need special treatment when we're copying them into the report. The target path stored in the report must always be relative but we need to pass an absolute path for the target to the recursive doCopyFileOrDir() call that picks up the target for us. There are further problems with the current code but these cannot be fixed trivially: symbolic links to directories are currently ignored but are fundamental to the layout of file systems like sys (and to a lesser extent proc). Supporting this properly requires an algorithm that can cope with arbitrary symlink loops in the tree being copied and that correctly copies-in any links that may point outside of the tree currently being copied. See Issues #71, #72 for more details.
Diffstat (limited to '__run__.py')
0 files changed, 0 insertions, 0 deletions