a/src/ohproduct.cxx b/src/ohproduct.cxx
...
...
388
static void listScripts(vector<pair<string, string> >& sources)
388
static void listScripts(vector<pair<string, string> >& sources)
389
{
389
{
390
    if (!g_config)
390
    if (!g_config)
391
        return;
391
        return;
392
392
393
    {
394
        PTMutexLocker conflock(g_configlock);
393
    g_config->get("ohsrc_scripts_dir", scripts_dir);
395
        g_config->get("ohsrc_scripts_dir", scripts_dir);
396
    }
394
397
395
    DIR *dirp = opendir(scripts_dir.c_str());
398
    DIR *dirp = opendir(scripts_dir.c_str());
396
    if (dirp == 0) {
399
    if (dirp == 0) {
397
        LOGERR("Error opening scripts dir " << scripts_dir << " errno " <<
400
        LOGERR("Error opening scripts dir " << scripts_dir << " errno " <<
398
               errno << endl);
401
               errno << endl);