1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[369767] [multithread][dstore] Invalid Default directory in shell Launch

This commit is contained in:
David McKnight 2012-02-23 14:25:56 +00:00
parent 12a68e701a
commit 06635af9bd

View file

@ -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$
}
}