Commit fce47c7e authored by Claes Sjofors's avatar Claes Sjofors

Allow uppercase letters in project path

parent 902f673b
...@@ -818,29 +818,29 @@ ini_CheckContext ( ...@@ -818,29 +818,29 @@ ini_CheckContext (
if (!cp->flags.b.aliasfile) if (!cp->flags.b.aliasfile)
sprintf(cp->aliasfile.name, dbs_cNameAlias, cp->dir); sprintf(cp->aliasfile.name, dbs_cNameAlias, cp->dir);
cdh_ToLower(cp->aliasfile.name, cp->aliasfile.name); // cdh_ToLower(cp->aliasfile.name, cp->aliasfile.name);
cp->nodefile.errcount = NULL; cp->nodefile.errcount = NULL;
cp->nodefile.logOpenFail = errh_LogInfo; cp->nodefile.logOpenFail = errh_LogInfo;
if (!cp->flags.b.applfile) if (!cp->flags.b.applfile)
sprintf(cp->applfile.name, dbs_cNameAppl, cp->dir, cp->nodename, cp->busid); sprintf(cp->applfile.name, dbs_cNameAppl, cp->dir, cdh_Low(cp->nodename), cp->busid);
cdh_ToLower(cp->applfile.name, cp->applfile.name); // cdh_ToLower(cp->applfile.name, cp->applfile.name);
cp->applfile.errcount = NULL; cp->applfile.errcount = NULL;
cp->applfile.logOpenFail = errh_LogInfo; cp->applfile.logOpenFail = errh_LogInfo;
if (!cp->flags.b.bootfile) if (!cp->flags.b.bootfile)
sprintf(cp->bootfile.name, dbs_cNameBoot, cp->dir, cp->nodename, cp->busid); sprintf(cp->bootfile.name, dbs_cNameBoot, cp->dir, cdh_Low(cp->nodename), cp->busid);
cdh_ToLower(cp->bootfile.name, cp->bootfile.name); // cdh_ToLower(cp->bootfile.name, cp->bootfile.name);
cp->bootfile.errcount = &cp->fatals; cp->bootfile.errcount = &cp->fatals;
cp->bootfile.logOpenFail = errh_LogFatal; cp->bootfile.logOpenFail = errh_LogFatal;
if (!cp->flags.b.nodefile) if (!cp->flags.b.nodefile)
sprintf(cp->nodefile.name, dbs_cNameNode, cp->dir, cp->nodename, cp->busid); sprintf(cp->nodefile.name, dbs_cNameNode, cp->dir, cdh_Low(cp->nodename), cp->busid);
cdh_ToLower(cp->nodefile.name, cp->nodefile.name); // cdh_ToLower(cp->nodefile.name, cp->nodefile.name);
cp->nodefile.errcount = &cp->fatals; cp->nodefile.errcount = &cp->fatals;
cp->nodefile.logOpenFail = errh_LogFatal; cp->nodefile.logOpenFail = errh_LogFatal;
cdh_ToLower(cp->plcfile.name, cp->plcfile.name); // cdh_ToLower(cp->plcfile.name, cp->plcfile.name);
cp->plcfile.errcount = NULL; cp->plcfile.errcount = NULL;
cp->plcfile.logOpenFail = errh_LogInfo; cp->plcfile.logOpenFail = errh_LogInfo;
...@@ -1111,11 +1111,11 @@ ini_ReadBootFile ( ...@@ -1111,11 +1111,11 @@ ini_ReadBootFile (
if (!cp->flags.b.plcfile) { if (!cp->flags.b.plcfile) {
#if defined OS_LYNX || defined OS_LINUX #if defined OS_LYNX || defined OS_LINUX
sprintf(cp->plcfile.name, dbs_cNamePlc, "", cp->nodename, cp->busid, cp->node.plcVersion); sprintf(cp->plcfile.name, dbs_cNamePlc, "", cdh_Low(cp->nodename), cp->busid, cp->node.plcVersion);
#elif defined OS_VMS #elif defined OS_VMS
sprintf(cp->plcfile.name, dbs_cNamePlc, "pwrp_exe:", cp->nodename, cp->busid, cp->node.plcVersion); sprintf(cp->plcfile.name, dbs_cNamePlc, "pwrp_exe:", cdh_Low(cp->nodename), cp->busid, cp->node.plcVersion);
#else #else
sprintf(cp->plcfile.name, dbs_cNamePlc, cp->dir, cp->nodename, cp->busid, cp->node.plcVersion); sprintf(cp->plcfile.name, dbs_cNamePlc, cp->dir, cdhLow(cp->nodename), cp->busid, cp->node.plcVersion);
#endif #endif
} }
#if 0 #if 0
...@@ -1130,7 +1130,7 @@ ini_ReadBootFile ( ...@@ -1130,7 +1130,7 @@ ini_ReadBootFile (
sprintf(cp->plcfile.name, "%s%s", cp->hostspec, tempname); sprintf(cp->plcfile.name, "%s%s", cp->hostspec, tempname);
#endif #endif
#endif #endif
cdh_ToLower(cp->plcfile.name, cp->plcfile.name); // cdh_ToLower(cp->plcfile.name, cp->plcfile.name);
errh_LogInfo(&cp->log, "This node vill run PLC file: %s", cp->plcfile.name); errh_LogInfo(&cp->log, "This node vill run PLC file: %s", cp->plcfile.name);
break; break;
} }
...@@ -1239,13 +1239,13 @@ ini_IterVolumes ( ...@@ -1239,13 +1239,13 @@ ini_IterVolumes (
lst_sEntry *vl; lst_sEntry *vl;
for (vp = lst_Succ(NULL, &cp->vol_lh, &vl); vp != NULL; vp = lst_Succ(NULL, vl, &vl)) { for (vp = lst_Succ(NULL, &cp->vol_lh, &vl); vp != NULL; vp = lst_Succ(NULL, vl, &vl)) {
sprintf(vp->filename, dbs_cNameVolume, cp->bdir, vp->name); sprintf(vp->filename, dbs_cNameVolume, cp->bdir, cdh_Low(vp->name));
cdh_ToLower(vp->filename, vp->filename); // cdh_ToLower(vp->filename, vp->filename);
dbs_Open(sts, &cp->dbs, vp->filename); dbs_Open(sts, &cp->dbs, vp->filename);
if (*sts == ERRNO__NOENT) { /* Give pwrp a chance */ if (*sts == ERRNO__NOENT) { /* Give pwrp a chance */
sprintf(vp->filename, dbs_cNameVolume, cp->dir, vp->name); sprintf(vp->filename, dbs_cNameVolume, cp->dir, cdh_Low(vp->name));
cdh_ToLower(vp->filename, vp->filename); // cdh_ToLower(vp->filename, vp->filename);
dbs_Open(sts, &cp->dbs, vp->filename); dbs_Open(sts, &cp->dbs, vp->filename);
} }
......
...@@ -128,7 +128,7 @@ int dcli_get_defaultfilename( ...@@ -128,7 +128,7 @@ int dcli_get_defaultfilename(
} }
#if defined(OS_LYNX) || defined(OS_LINUX) #if defined(OS_LYNX) || defined(OS_LINUX)
cdh_ToLower( outname, outname); // cdh_ToLower( outname, outname);
#endif #endif
return DCLI__SUCCESS; return DCLI__SUCCESS;
} }
......
...@@ -69,7 +69,7 @@ wb_dbs::wb_dbs(wb_vrep *v) : ...@@ -69,7 +69,7 @@ wb_dbs::wb_dbs(wb_vrep *v) :
//@todo strcpy(m_volume.className, m_ohp->chp->db.name.data); //@todo strcpy(m_volume.className, m_ohp->chp->db.name.data);
m_volume.dvVersion = getDvVersion( m_v); m_volume.dvVersion = getDvVersion( m_v);
sprintf(m_fileName, dbs_cNameVolume, dbs_cDirectory, m_v->name()); sprintf(m_fileName, dbs_cNameVolume, dbs_cDirectory, cdh_Low(m_v->name()));
dcli_translate_filename(m_fileName, m_fileName); dcli_translate_filename(m_fileName, m_fileName);
m_oid_th = tree_CreateTable(&sts, sizeof(pwr_tOid), offsetof(sOentry, o.oid), m_oid_th = tree_CreateTable(&sts, sizeof(pwr_tOid), offsetof(sOentry, o.oid),
...@@ -437,8 +437,6 @@ wb_dbs::openFile() ...@@ -437,8 +437,6 @@ wb_dbs::openFile()
pwr_tStatus sts; pwr_tStatus sts;
int ret; int ret;
cdh_ToLower(m_fileName, m_fileName);
m_fp = fopen(m_fileName, "w+b"); m_fp = fopen(m_fileName, "w+b");
if (m_fp == NULL) { if (m_fp == NULL) {
printf("** Cannot open file: %s\n", m_fileName); printf("** Cannot open file: %s\n", m_fileName);
......
...@@ -43,7 +43,7 @@ void XttGe::graph_init_cb( void *client_data) ...@@ -43,7 +43,7 @@ void XttGe::graph_init_cb( void *client_data)
int default_height; int default_height;
int sts; int sts;
cdh_ToLower( fname, ge->filename); strncpy( fname, ge->filename, sizeof(fname));
if ( ! strrchr( fname, '.')) if ( ! strrchr( fname, '.'))
strcat( fname, ".pwg"); strcat( fname, ".pwg");
ge->graph->open( fname); ge->graph->open( fname);
......
...@@ -2858,7 +2858,7 @@ int XNav::show_logging( int index) ...@@ -2858,7 +2858,7 @@ int XNav::show_logging( int index)
new ItemCommand( brow, Lng::translate("Stop"), 0, NULL, new ItemCommand( brow, Lng::translate("Stop"), 0, NULL,
flow_eDest_IntoLast, command, 0, brow->pixmap_action); flow_eDest_IntoLast, command, 0, brow->pixmap_action);
sprintf( command, "logging store/entry=%d/file=rtt_store_logg%d.rtt_com", sprintf( command, "logging store/entry=%d/file=\"rtt_store_logg%d.rtt_com\"",
entry, entry); entry, entry);
new ItemCommand( brow, Lng::translate("Store"), 0, NULL, new ItemCommand( brow, Lng::translate("Store"), 0, NULL,
flow_eDest_IntoLast, command, 0, brow->pixmap_action); flow_eDest_IntoLast, command, 0, brow->pixmap_action);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment