From d7b4eb0e9bc51d9cfed28838f64c4f8982486859 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 28 Nov 2012 14:48:33 -0500 Subject: [PATCH] [dstore] Regression for CommandMinerThread authority --- .../universal/miners/command/CommandMinerThread.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 ae0cc9528d8..79df0663621 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 @@ -36,6 +36,7 @@ * David McKnight (IBM) [339741] [dstore][shells] consecutive prompt line is ignored * Noriaki Takatsu (IBM) [369767] [multithread][dstore] Invalid Default directory in shell Launch * David McKnight (IBM) [372968] [dstore][shell] provide support for csh and tcsh shells + * David McKnight (IBM) [395306] [dstore] Regression for CommandMinerThread authority *******************************************************************************/ package org.eclipse.rse.internal.dstore.universal.miners.command; @@ -192,12 +193,12 @@ public class CommandMinerThread extends MinerThread String userHome = null; Client client = _dataStore.getClient(); - if (client != null){ //$NON-NLS-1$ - String clientActualUserId = client.getProperty("client.username");//$NON-NLS-1$ + if (client != null){ + String clientActualUserId = client.getProperty("user.name");//$NON-NLS-1$ String clientUserId = client.getUserid(); userHome = client.getProperty("user.home");//$NON-NLS-1$ - if (!theOS.equals("z/OS") && clientUserId != null && !clientActualUserId.equals(clientUserId)){ + if (!theOS.equals("z/OS") && clientUserId != null && !clientActualUserId.equals(clientUserId)){ //$NON-NLS-1$ suCommand = "su " + clientUserId + " -c "; //$NON-NLS-1$ //$NON-NLS-2$ } }