Switch to unified view

a/src/utils/execmd.cpp b/src/utils/execmd.cpp
...
...
96
    pp = getenv("PATH");
96
    pp = getenv("PATH");
97
    }
97
    }
98
    if (pp == 0)
98
    if (pp == 0)
99
    return false;
99
    return false;
100
100
101
    list<string> pels;
101
    vector<string> pels;
102
    stringToTokens(pp, pels, ":");
102
    stringToTokens(pp, pels, ":");
103
    for (list<string>::iterator it = pels.begin(); it != pels.end(); it++) {
103
    for (vector<string>::iterator it = pels.begin(); it != pels.end(); it++) {
104
    if (it->empty())
104
    if (it->empty())
105
        *it = ".";
105
        *it = ".";
106
    string candidate = (it->empty() ? string(".") : *it) + "/" + cmd;
106
    string candidate = (it->empty() ? string(".") : *it) + "/" + cmd;
107
    if (exec_is_there(candidate.c_str())) {
107
    if (exec_is_there(candidate.c_str())) {
108
        exepath = candidate;
108
        exepath = candidate;