diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-04-13 19:33:09 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-04-13 19:33:09 +0000 |
commit | d3978e3aa72d3cae7828a2016256aeea8bb38ed2 (patch) | |
tree | d12c4409a25f8347984bbec847acddb115ffba6c /livecd.py | |
parent | 5d6a7af66223e91c3959dc8662026ec68a7bf475 (diff) | |
download | anaconda-d3978e3aa72d3cae7828a2016256aeea8bb38ed2.tar.gz anaconda-d3978e3aa72d3cae7828a2016256aeea8bb38ed2.tar.xz anaconda-d3978e3aa72d3cae7828a2016256aeea8bb38ed2.zip |
2007-04-13 Jeremy Katz <katzj@redhat.com>
* livecd.py (LiveCDCopyBackend._doFilesystemMangling): Fix
restorecon to do the right thing; we were ending up with files
starting with // and then files were mis-labeled (#236282)
Diffstat (limited to 'livecd.py')
-rw-r--r-- | livecd.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -212,10 +212,10 @@ class LiveCDCopyBackend(backend.AnacondaBackend): wait.refresh() # XXX: we should be preserving contexts on our copy, but # this will do for now - for dir, subdirs, files in os.walk("%s/%s" %(anaconda.rootPath, tocopy)): + for dir, subdirs, files in os.walk(os.path.normpath("%s/%s" %(anaconda.rootPath, tocopy))): dir = dir[len(anaconda.rootPath):] - for f in map(lambda x: "%s/%s" %(dir, x), files): - if not os.access(f, os.R_OK): + for f in map(lambda x: "%s/%s" %(dir, x), files) + [dir]: + if not os.access("%s/%s" %(anaconda.rootPath, f), os.R_OK): continue ret = isys.resetFileContext(os.path.normpath(f), anaconda.rootPath) |