Changeset 268 for branches/branch-1.2/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Jul 16, 2011, 12:58:47 PM (13 years ago)
- Location:
- branches/branch-1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1.2
-
branches/branch-1.2/zoo-kernel/zoo_service_loader.c
r217 r268 675 675 #endif 676 676 while ((dp = readdir(dirp)) != NULL) 677 if(strcmp(dp->d_name,buff)==0){ 677 if((strcasecmp("all.zcfg",buff)==0 && strstr(dp->d_name,".zcfg")>0) 678 || strcasecmp(dp->d_name,buff)==0){ 678 679 memset(buff1,0,1024); 679 680 snprintf(buff1,1024,"%s/%s",conf_dir,dp->d_name); … … 764 765 return 0; 765 766 } 766 //close(saved_stdout);767 close(saved_stdout); 767 768 768 769 #ifdef DEBUG … … 1812 1813 if(tmpPath==NULL) 1813 1814 tmpPath=getMapFromMaps(m,"main","tmpPath"); 1814 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(cgiCookie,"=")+1); 1815 char *tmp1=strtok(cgiCookie,";"); 1816 if(tmp1!=NULL) 1817 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(tmp1,"=")+1); 1818 else 1819 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,strstr(cgiCookie,"=")+1); 1820 1815 1821 maps *tmpSess=(maps*)calloc(1,MAPS_SIZE); 1816 1822 struct stat file_status; 1817 1823 int istat = stat(session_file_path, &file_status); 1818 if(istat==0 ){1824 if(istat==0 && file_status.st_size>0){ 1819 1825 conf_read(session_file_path,tmpSess); 1820 1826 dumpMaps(tmpSess);
Note: See TracChangeset
for help on using the changeset viewer.