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 c10ca5ed44ee1f6a5224ec672931b2c5bbaafc3d..b5273ee0aeb37dba256718d9eea57d05265af69a 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,6 +728,12 @@ 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()) @@ -735,8 +741,8 @@ public final class RsyncCopier implements IPathCopier, IDirectoryImmutableCopier operationLog.debug(String.format("Running command '%s'", commandLine)); } processHandler = - ProcessExecutionHelper.runUnblocking(commandLine, operationLog, machineLog, - ProcessIOStrategy.DEFAULT_IO_STRATEGY); + ProcessExecutionHelper.runUnblocking(commandLine, env, false, operationLog, + machineLog, ProcessIOStrategy.DEFAULT_IO_STRATEGY); rsyncTerminator.set(processHandler); } if (operationLog.isTraceEnabled())