From c9b0574ab500cb293997752d49fba87b830a7eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Hanuszczak?= Date: Wed, 27 Aug 2025 18:32:59 +0200 Subject: [PATCH] Make `cp` in `tsk-sys` build script more robust. --- crates/tsk-sys/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/tsk-sys/build.rs b/crates/tsk-sys/build.rs index 55e1e288..68dfe03f 100644 --- a/crates/tsk-sys/build.rs +++ b/crates/tsk-sys/build.rs @@ -21,7 +21,8 @@ fn main() { // scripts, which are only supposed to mutate the out directory, so this // copies the entire sleuthkit source into the out directory first. Command::new("cp") - .arg("-r") + .arg("--recursive") + .arg("--no-target-directory") .arg(sleuthkit_source_path) .arg(&sleuthkit_out_path) .status()