]> git.pond.sub.org Git - empserver/commit
xundump: Permit omitting trailing sectors and realms
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 8 Feb 2014 14:11:51 +0000 (15:11 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2015 15:53:00 +0000 (16:53 +0100)
commitcfa0eac32aabd0d44786172bfe2ecdac9a6a41bf
treed0fbaa5bcb67e113f0c1c9e11e1e83bb70fec6c7
parent515beef12eef02b76f1af8c35b160767bf9bfe0f
xundump: Permit omitting trailing sectors and realms

We currently require all rows to be present for tables item, sect-chr,
infrastructure, sect, realm.

The first three make sense: the code hard-codes indexes for them, and
malfunctions when entries are blank, so we want to make it hard to
leave any blank by accident.

The last two don't: blank sectors and realms work fine.  There, the
restriction is arbitrary.  Drop it.

Sectors and realms still can't be omitted "in the middle" (can do that
only with an ID selector), but that's coming soon.

See also commit 4a4ec91.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/common/xundump.c
tests/empdump/errors.err
tests/empdump/xundump-errors/ftr-fewrows