]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/xundump.c
Restrict xundump to tables with a file name
[empserver] / src / lib / common / xundump.c
index fbf1b9c2e2406c1c35c431ef676a433500ebd5d5..5d8190801272bad494fc2e84669b6b12d2ffac13 100644 (file)
@@ -784,7 +784,8 @@ xuheader(FILE *fp, int expected_table)
        return gripe("Expected table `%s', not `%s'",
                     ef_nameof(expected_table), name);
 
-    if (!ef_cadef(type) || !(ef_flags(type) & EFF_MEM)) {
+    if (!empfile[type].file
+       || !ef_cadef(type) || !(ef_flags(type) & EFF_MEM)) {
        CANT_HAPPEN(expected_table != EF_BAD);
        return gripe("Table `%s' is not permitted here", name);
     }