chiark / gitweb /
zone.lisp: TXT record data is always a list of strings.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 28 Apr 2014 09:03:50 +0000 (10:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 28 Apr 2014 09:03:50 +0000 (10:03 +0100)
Never a singleton.  Otherwise all output formats must do the listifying
separately, and that's just annoying.

zone.lisp

index 6b84dac957619fea85e63928434e7b0049029bd1..633e0d4978fe1f92ed55463949520789aca3f872 100644 (file)
--- a/zone.lisp
+++ b/zone.lisp
@@ -632,8 +632,8 @@ (defzoneparse :cname (name data rec :zname zname)
   (rec :data (zone-parse-host data zname)))
 
 (defzoneparse :txt (name data rec)
-  ":txt TEXT"
-  (rec :data data))
+  ":txt (TEXT*)"
+  (rec :data (listify data)))
 
 (export '*dkim-pathname-defaults*)
 (defvar *dkim-pathname-defaults*
@@ -1003,7 +1003,7 @@ (defgeneric bind-record-format-args (type data)
     (cons "~2D ~2D ~A" data))
   (:method ((type (eql :txt)) data)
     (cons "~#[\"\"~;~S~:;(~@{~%~8T~S~} )~]"
-         (mapcar #'stringify (listify data)))))
+         (mapcar #'stringify data))))
 
 (defmethod bind-record (type zr)
   (destructuring-bind (format &rest args)