소스 검색

* should now also ignore comment starting with ; (bug 45something)

git-svn-id: trunk@1720 -
marco 20 년 전
부모
커밋
2765cc28bc
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      packages/base/netdb/netdb.pp

+ 7 - 1
packages/base/netdb/netdb.pp

@@ -209,7 +209,13 @@ begin
       Readln(R,L);
       I:=Pos('#',L);
       If (I<>0) then
-        L:=Copy(L,1,I-1);
+        L:=Copy(L,1,I-1)
+      else
+        begin
+          I:=Pos(';',L);
+          If (I<>0) then
+            L:=Copy(L,1,I-1)
+	end;
       If CheckDirective('nameserver') then
         begin
         H:=HostToNet(StrToHostAddr(L));