Changeset 1225
- Timestamp:
- 03/11/10 06:26:17 (2 years ago)
- Files:
-
- 1 modified
-
trunk/unxsBind/interfaces/admin/resource.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsBind/interfaces/admin/resource.c
r1220 r1225 2748 2748 //messages are displayed, if incorrecty set, probably you will miss part of the error 2749 2749 //text, or worst make idnsAdmin to crash! 2750 #define BIND_9_62750 //#define BIND_9_6 2751 2751 2752 2752 //This function will create a zonefile online and run named-checkzone … … 2856 2856 while((field2=mysql_fetch_row(res2))) 2857 2857 { 2858 char cRRType[9]=""; 2859 2858 2860 sscanf(field2[2],"%u",&uRRType); 2861 sprintf(cRRType,"%.8s",GetRRType(uRRType)); 2862 2859 2863 if(field2[1][0]!='0') strcpy(cTTL,field2[1]); 2864 2860 2865 //Do not write TTL if cName is a $GENERATE line 2861 2866 if(strstr(field2[0],"$GENERATE")==NULL) 2862 2867 { 2863 if(strcmp(GetRRType(uRRType),"SRV")) 2864 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\n", 2865 field2[0], 2866 cTTL, 2867 GetRRType(uRRType), 2868 field2[3], 2869 field2[4]); 2870 else 2868 if(!strcmp(cRRType,"SRV")) 2871 2869 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n", 2872 2870 field2[0], 2873 2871 cTTL, 2874 GetRRType(uRRType),2872 cRRType, 2875 2873 field2[3], 2876 2874 field2[4], 2877 2875 field2[5], 2878 2876 field2[6]); 2877 else if(!strcmp(cRRType,"NAPTR")) 2878 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\t%s\t%s\n", 2879 field2[0], 2880 cTTL, 2881 cRRType, 2882 field2[3], 2883 field2[4], 2884 field2[5], 2885 field2[6]); 2886 else if(1) 2887 fprintf(zfp,"%s\t%s\t%s\t%s\t%s\n", 2888 field2[0], 2889 cTTL, 2890 cRRType, 2891 field2[3], 2892 field2[4]); 2879 2893 } 2880 2894 else 2895 { 2881 2896 fprintf(zfp,"%s\t%s\t%s\t%s\n", 2882 2897 field2[0], 2883 GetRRType(uRRType),2898 cRRType, 2884 2899 field2[3], 2885 2900 field2[4]); 2901 } 2886 2902 } 2887 2903 mysql_free_result(res2);
