If a key contains only an empty tree of structures, then `key_write'
returns an empty string, which breaks the whitespace-separated field
structure of the output key line. Notice this and insert an empty
structure by hand as an unpleasant bodge.
The resulting key is still highly anomalous. In particular, it doesn't
match any filter, because structure nodes don't have flags. I don't
know what to do about this.
key_fulltag(k, &d);
DPUTC(&d, ' ');
key_fulltag(k, &d);
DPUTC(&d, ' ');
- key_write(k->k, &d, kf);
+ if (!key_write(k->k, &d, kf)) dstr_puts(&d, "struct:[]");
DPUTC(&d, ' ');
dstr_write(&d, fp);
DRESET(&d);
DPUTC(&d, ' ');
dstr_write(&d, fp);
DRESET(&d);