Changeset 933 for branches/prototype-v0/zoo-project/zoo-kernel/ulinet.c
- Timestamp:
- May 31, 2019, 3:03:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/ulinet.c
r899 r933 32 32 #include <assert.h> 33 33 #include <ctype.h> 34 #include "fcgi_stdio.h"35 34 36 35 /** … … 270 269 char* getProvenance(maps* conf,const char* url){ 271 270 map* sharedCache=getMapFromMaps(conf,"security","shared"); 272 char *res="OTHER"; 273 char *paths[2]={ 271 //char *res="OTHER"; 272 static char OTHER[] = "OTHER"; 273 static char SHARED[] = "SHARED"; 274 static char LOCAL[] = "LOCAL"; 275 const char *paths[2]={ 274 276 "mapserverAddress", 275 277 "tmpUrl" … … 280 282 while(curs!=NULL){ 281 283 if(strstr(url,curs)==NULL){ 282 return "SHARED";284 return SHARED; 283 285 } 284 286 curs=strtok(NULL,","); … … 289 291 if(sharedCache!=NULL){ 290 292 if(strstr(url,sharedCache->value)!=NULL){ 291 return "LOCAL"; 292 } 293 } 294 } 295 return res; 293 return LOCAL; 294 } 295 } 296 } 297 //return res; 298 return OTHER; 296 299 } 297 300
Note: See TracChangeset
for help on using the changeset viewer.