Added support to AbstractSSHHost.get_file() to not try to preserve the
orginal file permissions. Used this from crashinfo copying code to not
copy /var/log/messasges with 0600 privileges and such (which is common
on Linux distributions) and then not be able to read it in the frontend. 
Also changed the way we copy the client control file wrapper to not 
preserve the original permissions of the file.

Signed-off-by: Mihai Rusu <[email protected]>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3048 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/server_job.py b/server/server_job.py
index e066ced..e54e9dc 100755
--- a/server/server_job.py
+++ b/server/server_job.py
@@ -400,8 +400,8 @@
                 if self.client:
                     namespace['control'] = control
                     utils.open_write_close(client_control_file, control)
-                    shutil.copy(CLIENT_WRAPPER_CONTROL_FILE,
-                                server_control_file)
+                    shutil.copyfile(CLIENT_WRAPPER_CONTROL_FILE,
+                                    server_control_file)
                 else:
                     utils.open_write_close(server_control_file, control)
                 self._execute_code(server_control_file, namespace)