Hide Forgot
Description of problem: cp -avZ does not copy a first directory in a bash expanded list, while cp -av works OK on a system where SELinux is not enabled. Version-Release number of selected component (if applicable): 8.12-6.fc16.x86_64 How reproducible: Always Steps to Reproduce: 1. mkdir -p cptest/bin cptest/nonbin cptarget 2. cp -avZ cptest/* cptarget/ Actual results: Warning: ignoring --context (-Z). It requires a SELinux enabled kernel. `cptest/nonbin' -> `cptarget/nonbin' Only nonbin subdir si copied. The bin subdir is skipped. Expected results: cp -av copies both dirs. This is true for both i686 and x86_64.
Thanks for report, but sorry - this not a bug. This is expected behaviour and misusing -Z option. Non-upstream, now deprecated -Z option requires an argument - to which the context of the destination files is set - therefore the first argument is "eaten" and skipped.