client: preserve ownership when copying files to slot directory.

svn path=/trunk/boinc/; revision=16827
This commit is contained in:
Charlie Fenton 2009-01-07 04:11:30 +00:00
parent 9643394e2e
commit b7699eb6bc
2 changed files with 7 additions and 1 deletions

View File

@ -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 <copy_file/> tag.
lib/
filesys.cpp

View File

@ -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
}