From: Markus Armbruster Date: Sun, 8 May 2011 10:40:56 +0000 (+0200) Subject: Fix how empdump rejects attempt to split table sect X-Git-Tag: v4.3.28~80 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=bd453cd8213201910028de2a58f2c19a98d420d8 Fix how empdump rejects attempt to split table sect Split tables require the record index in the leftmost column. defellipsis() correctly rejects "..." when the table doesn't have one. It fails to reject it when it has one that is NSC_EXTRA, and thus not permitted in a dump. This is the case for table sect. defellipsis() happily succeeds, then chkflds() demands column "uid" if it's missing, and rejects it if its present. --- diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index 54448f647..fb6ea7ad5 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -392,7 +392,7 @@ defellipsis(void) { struct castr *ca = ef_cadef(cur_type); - if (ca[0].ca_table != cur_type) + if (ca[0].ca_table != cur_type || (ca[0].ca_flags & NSC_EXTRA)) return gripe("Table %s doesn't support ...", ef_nameof(cur_type)); ellipsis = is_partial = 1; return 0;