diff options
| author | Liam Mitchell <[email protected]> | 2025-08-06 17:00:51 -0700 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-08-06 17:00:51 -0700 |
| commit | f077d0b7145023a67522c8864d14431a37a22a0a (patch) | |
| tree | 9f248d1bd896b710a79fa894361c72c051c6e863 /src/zencore/filesystem.cpp | |
| parent | Use apt instead of apt-get for installing system packages (diff) | |
| parent | Fix permissions and ownership issues with service binary copy and remove unne... (diff) | |
| download | zen-f077d0b7145023a67522c8864d14431a37a22a0a.tar.xz zen-f077d0b7145023a67522c8864d14431a37a22a0a.zip | |
Merge pull request #452 from ue-foundation/lm/full-service-install
Add --full option to service install, which will handle stop/uninstall if necessary, and copy binaries to install location
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 46337ffc8..8327838c9 100644 --- a/src/zencore/filesystem.cpp +++ b/src/zencore/filesystem.cpp @@ -900,6 +900,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); |