Changeset 1234
- Timestamp:
- 07/15/08 23:51:16 (4 months ago)
- Files:
-
- trunk/pdns/pdns/misc.hh (modified) (1 diff)
- trunk/pdns/pdns/zoneparser-tng.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/misc.hh
r1094 r1234 385 385 string ret=domain; 386 386 ret.append(1,'.'); 387 ret.append(zone); 387 if(!zone.empty() && zone[0]!='.') 388 ret.append(zone); 388 389 return ret; 389 390 } trunk/pdns/pdns/zoneparser-tng.cc
r1165 r1234 1 1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2005 - 200 7PowerDNS.COM BV3 Copyright (C) 2005 - 2008 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 235 235 goto retry; 236 236 237 if(parts[0].first != parts[0].second && makeString(d_line, parts[0])[0]==';') // line consisting of nothing but comments 238 goto retry; 239 237 240 if(d_line[0]=='$') { 238 241 string command=makeString(d_line, parts[0]); … … 331 334 } 332 335 if(!haveQTYPE) 333 throw exception("Malformed line '"+d_line+"'");336 throw exception("Malformed line "+lexical_cast<string>(d_filestates.top().d_lineno)+" of '"+d_filestates.top().d_filename+"': "+d_line+"'"); 334 337 335 338 rr.content=d_line.substr(range.first); … … 344 347 if(!findAndElide(rr.content, ')')) { 345 348 while(getLine()) { 346 chomp(d_line,"\ r\n ");349 chomp(d_line,"\t\r\n "); 347 350 chopComment(d_line); 348 351 trim(d_line);