From 06635af9bd7226bea7423beb29ad3f718cdbfb69 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 23 Feb 2012 14:25:56 +0000 Subject: [PATCH] [369767] [multithread][dstore] Invalid Default directory in shell Launch --- .../dstore/universal/miners/command/CommandMinerThread.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java index cd86fb3bc9a..a546867c6c5 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java +++ b/rse/plugins/org.eclipse.rse.services.dstore/miners/org/eclipse/rse/internal/dstore/universal/miners/command/CommandMinerThread.java @@ -191,12 +191,12 @@ public class CommandMinerThread extends MinerThread String userHome = null; Client client = _dataStore.getClient(); - if (client != null && theOS.equals("z/OS")){ //$NON-NLS-1$ + if (client != null){ //$NON-NLS-1$ String clientActualUserId = client.getProperty("client.username");//$NON-NLS-1$ String clientUserId = client.getUserid(); userHome = client.getProperty("user.home");//$NON-NLS-1$ - if (clientUserId != null && !clientActualUserId.equals(clientUserId)){ + if (!theOS.equals("z/OS") && clientUserId != null && !clientActualUserId.equals(clientUserId)){ suCommand = "su " + clientUserId + " -c "; //$NON-NLS-1$ //$NON-NLS-2$ } }