From baa420dbc358cb48d26e0aa94a36196f737b3f04 Mon Sep 17 00:00:00 2001 From: Liam Mitchell Date: Fri, 25 Jul 2025 20:58:17 +0000 Subject: Fix permissions and ownership issues with service binary copy and remove unnecessary alias from unit file --- src/zencore/filesystem.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zencore/filesystem.cpp') diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp index 05e2bf049..783f01b6c 100644 --- a/src/zencore/filesystem.cpp +++ b/src/zencore/filesystem.cpp @@ -603,6 +603,8 @@ CopyFile(const std::filesystem::path& FromPath, const std::filesystem::path& ToP size_t FileSizeBytes = Stat.st_size; + fchown(ToFd, Stat.st_uid, Stat.st_gid); + // Copy impl const size_t BufferSize = Min(FileSizeBytes, 64u << 10); void* Buffer = malloc(BufferSize); -- cgit v1.2.3