Changeset 1227
- Timestamp:
- 03/11/10 07:31:54 (2 years ago)
- Location:
- trunk/unxsBind/interfaces
- Files:
-
- 2 modified
-
org/resource.c (modified) (1 diff)
-
vorg/resource.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsBind/interfaces/org/resource.c
r1222 r1227 2460 2460 while((field2=mysql_fetch_row(res2))) 2461 2461 { 2462 char cRRType[9]=""; 2463 2462 2464 sscanf(field2[2],"%u",&uRRType); 2465 sprintf(cRRType,"%.8s",GetRRType(uRRType)); 2466 2463 2467 if(field2[1][0]!='0') strcpy(cTTL,field2[1]); 2468 2464 2469 //Do not write TTL if cName is a $GENERATE line 2465 2470 if(strstr(field2[0],"$GENERATE")==NULL) 2466 2471 { 2467 if(strcmp(GetRRType(uRRType),"SRV")) 2468 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\n", 2469 field2[0], 2470 cTTL, 2471 GetRRType(uRRType), 2472 field2[3], 2473 field2[4]); 2474 else 2472 if(!strcmp(cRRType,"SRV")) 2475 2473 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n", 2476 2474 field2[0], 2477 2475 cTTL, 2478 GetRRType(uRRType),2476 cRRType, 2479 2477 field2[3], 2480 2478 field2[4], 2481 2479 field2[5], 2482 2480 field2[6]); 2481 else if(!strcmp(cRRType,"NAPTR")) 2482 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n", 2483 field2[0], 2484 cTTL, 2485 cRRType, 2486 field2[3], 2487 field2[4], 2488 field2[5], 2489 field2[6]); 2490 else if(1) 2491 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\n", 2492 field2[0], 2493 cTTL, 2494 cRRType, 2495 field2[3], 2496 field2[4]); 2483 2497 } 2484 2498 else 2499 { 2485 2500 fprintf(zfp,"%s\t%s\t%s\t%s\n", 2486 2501 field2[0], 2487 GetRRType(uRRType),2502 cRRType, 2488 2503 field2[3], 2489 2504 field2[4]); 2490 } 2505 } 2506 } 2507 2491 2508 mysql_free_result(res2); 2492 2509 fclose(zfp); -
trunk/unxsBind/interfaces/vorg/resource.c
r1222 r1227 2406 2406 while((field2=mysql_fetch_row(res2))) 2407 2407 { 2408 char cRRType[9]=""; 2409 2408 2410 sscanf(field2[2],"%u",&uRRType); 2411 sprintf(cRRType,"%.8s",GetRRType(uRRType)); 2412 2409 2413 if(field2[1][0]!='0') strcpy(cTTL,field2[1]); 2414 2410 2415 //Do not write TTL if cName is a $GENERATE line 2411 2416 if(strstr(field2[0],"$GENERATE")==NULL) 2412 2417 { 2413 if(strcmp(GetRRType(uRRType),"SRV")) 2414 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\n", 2415 field2[0], 2416 cTTL, 2417 GetRRType(uRRType), 2418 field2[3], 2419 field2[4]); 2420 else 2418 if(!strcmp(cRRType,"SRV")) 2421 2419 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n", 2422 2420 field2[0], 2423 2421 cTTL, 2424 GetRRType(uRRType),2422 cRRType, 2425 2423 field2[3], 2426 2424 field2[4], 2427 2425 field2[5], 2428 2426 field2[6]); 2427 else if(!strcmp(cRRType,"NAPTR")) 2428 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n", 2429 field2[0], 2430 cTTL, 2431 cRRType, 2432 field2[3], 2433 field2[4], 2434 field2[5], 2435 field2[6]); 2436 else if(1) 2437 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\n", 2438 field2[0], 2439 cTTL, 2440 cRRType, 2441 field2[3], 2442 field2[4]); 2429 2443 } 2430 2444 else 2445 { 2431 2446 fprintf(zfp,"%s\t%s\t%s\t%s\n", 2432 2447 field2[0], 2433 GetRRType(uRRType),2448 cRRType, 2434 2449 field2[3], 2435 2450 field2[4]); 2451 } 2436 2452 } 2437 2453 mysql_free_result(res2);
