From 6fefa2d9ff59fede68fcec04d6608d9cc0a66b2a Mon Sep 17 00:00:00 2001 From: Astronand Date: Tue, 3 Mar 2026 12:25:25 -0500 Subject: [PATCH] cp should not copy perms --- Src/Hyperion-bash/bin/hysh | 2 -- 1 file changed, 2 deletions(-) diff --git a/Src/Hyperion-bash/bin/hysh b/Src/Hyperion-bash/bin/hysh index 6038361..0f41b2f 100644 --- a/Src/Hyperion-bash/bin/hysh +++ b/Src/Hyperion-bash/bin/hysh @@ -133,8 +133,6 @@ local function copyfile(src, dst) if not data then return false, err end local ok, err2 = writefile(dst, data) if not ok then return false, err2 end - local ok2, stat = pcall(syscall.stat, src) - if ok2 and stat and stat.perms then pcall(syscall.chmod, dst, stat.perms) end return true end