We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4325fd1 commit 3eae759Copy full SHA for 3eae759
src/uu/cp/src/cp.rs
@@ -2458,7 +2458,11 @@ fn copy_file(
2458
#[cfg(feature = "selinux")]
2459
if options.set_selinux_context && uucore::selinux::is_selinux_enabled() {
2460
// Set the given selinux permissions on the copied file.
2461
- uucore::selinux::set_selinux_security_context(dest, options.context.as_ref())?;
+ if let Err(e) =
2462
+ uucore::selinux::set_selinux_security_context(dest, options.context.as_ref())
2463
+ {
2464
+ return Err(Error::Error(format!("SELinux error: {}", e)));
2465
+ }
2466
}
2467
2468
copied_files.insert(
0 commit comments