  						    cur->fts_parent->fts_path,
  						    cur->fts_name);
  						mac_free(label);
-@@ -803,7 +813,7 @@
+@@ -803,7 +823,7 @@
  
  				if ((np = malloc(sizeof(NAMES) + labelstrlen +
  				    ulen + glen + flen + 4)) == NULL)

 						    cur->fts_parent->fts_path,
 						    cur->fts_name);
 						goto label_out;
@@ -775,7 +785,7 @@
 						error = mac_get_link(name,
 						    label);
 					if (error == -1) {

 			rval = 1;
 			break;
 		case FTS_D:
@@ -532,31 +543,40 @@
 			    p->fts_name[0] == '.' && !f_listdot)
 				break;
 
+			if (first) {
+				first = 0;
+				xo_open_list("directory");
+			}
+			xo_open_instance("directory");
+
 			/*
 			 * If already output something, put out a newline as
 			 * a separator.  If multiple arguments, precede each
 			 * directory with its name.
 			 */
 			if (output) {
