1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 01:05:38 +02:00

[dstore] Regression for CommandMinerThread authority

This commit is contained in:
David McKnight 2012-11-28 14:48:33 -05:00
parent 5d4c521fe5
commit d7b4eb0e9b

View file

@ -36,6 +36,7 @@
* David McKnight (IBM) [339741] [dstore][shells] consecutive prompt line is ignored * David McKnight (IBM) [339741] [dstore][shells] consecutive prompt line is ignored
* Noriaki Takatsu (IBM) [369767] [multithread][dstore] Invalid Default directory in shell Launch * 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) [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; package org.eclipse.rse.internal.dstore.universal.miners.command;
@ -192,12 +193,12 @@ public class CommandMinerThread extends MinerThread
String userHome = null; String userHome = null;
Client client = _dataStore.getClient(); Client client = _dataStore.getClient();
if (client != null){ //$NON-NLS-1$ if (client != null){
String clientActualUserId = client.getProperty("client.username");//$NON-NLS-1$ String clientActualUserId = client.getProperty("user.name");//$NON-NLS-1$
String clientUserId = client.getUserid(); String clientUserId = client.getUserid();
userHome = client.getProperty("user.home");//$NON-NLS-1$ 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$ suCommand = "su " + clientUserId + " -c "; //$NON-NLS-1$ //$NON-NLS-2$
} }
} }