From 17bf4b8bfc24c862a35555ce00db9a2e41973810 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Thu, 6 Sep 2012 22:27:16 +0000 Subject: [PATCH] Revert r26547. SVN: 26548 --- .../cisd/common/filesystem/rsync/RsyncCopier.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 b5273ee0aeb..c10ca5ed44e 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()) -- GitLab