Switch to unified view

a/src/common/rclconfig.cpp b/src/common/rclconfig.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: rclconfig.cpp,v 1.17 2005-12-13 12:42:59 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: rclconfig.cpp,v 1.18 2006-01-10 12:58:39 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
#include <unistd.h>
4
#include <unistd.h>
5
#include <stdio.h>
5
#include <stdio.h>
6
#include <errno.h>
6
#include <errno.h>
7
#include <sys/types.h>
7
#include <sys/types.h>
...
...
220
    return icmd;
220
    return icmd;
221
221
222
    string cmd;
222
    string cmd;
223
    const char *cp;
223
    const char *cp;
224
224
225
    if (cp = getenv("RECOLL_FILTERSDIR")) {
225
    if ((cp = getenv("RECOLL_FILTERSDIR"))) {
226
    cmd = path_cat(cp, icmd);
226
    cmd = path_cat(cp, icmd);
227
    if (access(cmd.c_str(), X_OK) == 0)
227
    if (access(cmd.c_str(), X_OK) == 0)
228
        return cmd;
228
        return cmd;
229
    } else if (conf->getConfParam(string("filtersdir"), cmd)) {
229
    } else if (conf->getConfParam(string("filtersdir"), cmd)) {
230
    cmd = path_cat(cmd, icmd);
230
    cmd = path_cat(cmd, icmd);