Ignore:
Timestamp:
2019-08-12T15:07:23+12:00 (5 years ago)
Author:
ak19
Message:

Mistake to do with launchdir in SafeProcess: if the environment for the process to be executed is null, it does not follow that the launchdir for that process would be null. Ought to handle the params separately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/util/SafeProcess.java

    r31720 r33403  
    280280       
    281281       
    282         if(this.envp == null) {
     282        if(this.envp == null && this.dir == null) {
    283283        prcs = rt.exec(this.command_args);
    284         } else { // launch process using cmd str with env params       
     284        } else { // launch process using cmd str with env params and/or exec-dir
    285285       
    286286        if(this.dir == null) {
Note: See TracChangeset for help on using the changeset viewer.