Changeset 784 for trunk/zoo-project/zoo-kernel/response_print.c
- Timestamp:
- Jun 29, 2016, 3:40:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/response_print.c
r781 r784 1546 1546 * Else fallback to the initial method using the xml file to write in ... 1547 1547 */ 1548 char ntmp[1024]; 1549 #ifndef WIN32 1550 getcwd(ntmp,1024); 1551 #else 1552 _getcwd(ntmp,1024); 1553 #endif 1548 map* cwdMap=getMapFromMaps(m,"main","servicePath"); 1554 1549 struct stat myFileInfo; 1555 1550 int statRes; 1556 1551 char file_path[1024]; 1557 sprintf(file_path,"%s/GetStatus.zcfg",ntmp); 1552 if(cwdMap!=NULL){ 1553 sprintf(file_path,"%s/GetStatus.zcfg",cwdMap->value); 1554 }else{ 1555 char ntmp[1024]; 1556 #ifndef WIN32 1557 getcwd(ntmp,1024); 1558 #else 1559 _getcwd(ntmp,1024); 1560 #endif 1561 sprintf(file_path,"%s/GetStatus.zcfg",ntmp); 1562 } 1563 fprintf(stderr,"%s \n",file_path); 1558 1564 statRes=stat(file_path,&myFileInfo); 1559 1565 if(statRes==0){
Note: See TracChangeset
for help on using the changeset viewer.