From b7699eb6bc0d2d39be2940e7f4fa9e5f5f8d9b87 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 7 Jan 2009 04:11:30 +0000 Subject: [PATCH] client: preserve ownership when copying files to slot directory. svn path=/trunk/boinc/; revision=16827 --- checkin_notes | 6 ++++++ lib/filesys.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 0dc7b9599c..2f5a13e07c 100644 --- a/checkin_notes +++ b/checkin_notes @@ -37,3 +37,9 @@ Janus Jan 6 2009 locales/da BOINC-Manager.po +Charlie Jan 6 2009 + client: preserve ownership when copying files to slot directory. Fixes + a problem with Enigma@home which uses the tag. + + lib/ + filesys.cpp diff --git a/lib/filesys.cpp b/lib/filesys.cpp index 0e492039fa..a439ab432e 100644 --- a/lib/filesys.cpp +++ b/lib/filesys.cpp @@ -505,7 +505,7 @@ int boinc_copy(const char* orig, const char* newf) { return system(cmd); #else char cmd[1024]; - sprintf(cmd, "cp \"%s\" \"%s\"", orig, newf); + sprintf(cmd, "cp -p \"%s\" \"%s\"", orig, newf); return system(cmd); #endif }