From 1a02f77fdd19bffb8f6ba1a689b69524bf1e9189 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 21 Jul 2020 17:15:05 +0100 Subject: [PATCH] target/pull: Use chmod from busybox Not all implementations of chmod support the use of `--` so ensure we use a known implementations from busybox. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 64cb6dc..0f98ccd 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -494,7 +494,7 @@ class Target(object): for source in sources: with self._xfer_cache_path(source) as device_tempfile: self.execute("cp -r -- {} {}".format(quote(source), quote(device_tempfile)), as_root=True) - self.execute("chmod 0644 -- {}".format(quote(device_tempfile)), as_root=True) + self.execute("{} chmod 0644 -- {}".format(self.busybox, quote(device_tempfile)), as_root=True) do_pull([device_tempfile], dest) else: do_pull(sources, dest)