diff --git a/common/source/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopier.java b/common/source/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopier.java index b5273ee0aeb37dba256718d9eea57d05265af69a..c10ca5ed44ee1f6a5224ec672931b2c5bbaafc3d 100644 --- a/common/source/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopier.java +++ b/common/source/java/ch/systemsx/cisd/common/filesystem/rsync/RsyncCopier.java @@ -728,12 +728,6 @@ public final class RsyncCopier implements IPathCopier, IDirectoryImmutableCopier operationLog.trace(String.format("Trying to get lock for running command '%s'", commandLine)); } - Map<String, String> env = null; - if (System.getenv("HOME") == null) - { - env = new HashMap<String, String>(); - env.put("HOME", System.getProperty("user.dir")); - } synchronized (this) { if (operationLog.isDebugEnabled()) @@ -741,8 +735,8 @@ public final class RsyncCopier implements IPathCopier, IDirectoryImmutableCopier operationLog.debug(String.format("Running command '%s'", commandLine)); } processHandler = - ProcessExecutionHelper.runUnblocking(commandLine, env, false, operationLog, - machineLog, ProcessIOStrategy.DEFAULT_IO_STRATEGY); + ProcessExecutionHelper.runUnblocking(commandLine, operationLog, machineLog, + ProcessIOStrategy.DEFAULT_IO_STRATEGY); rsyncTerminator.set(processHandler); } if (operationLog.isTraceEnabled())