diff options
| author | Liam Mitchell <[email protected]> | 2025-07-25 20:58:17 +0000 |
|---|---|---|
| committer | Liam Mitchell <[email protected]> | 2025-07-25 20:58:17 +0000 |
| commit | baa420dbc358cb48d26e0aa94a36196f737b3f04 (patch) | |
| tree | bc2f7c70c18e9ecc7b0186fdb797bf85ab755bef /src/zencore/filesystem.cpp | |
| parent | Increase service stop timeout to 30 seconds during full install (diff) | |
| download | zen-baa420dbc358cb48d26e0aa94a36196f737b3f04.tar.xz zen-baa420dbc358cb48d26e0aa94a36196f737b3f04.zip | |
Fix permissions and ownership issues with service binary copy and remove unnecessary alias from unit file
Diffstat (limited to 'src/zencore/filesystem.cpp')
| -rw-r--r-- | src/zencore/filesystem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |