From cff42775ac1dc9a2d279eb354895634eea681720 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 18 Jun 2011 17:10:34 +0200 Subject: [PATCH] Permit truncating table product Truncating is actually fine for table product. It's forbidden because selector sname has flag NSC_CONST set. I don't remember why sname was made const in commit 445dfec9 along with item selector mnem, sect-chr selector mnem and infrastructure selector name. Unlike the other tables, no code depends on product's builtin values. Clear the flag. --- src/lib/common/nsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common/nsc.c b/src/lib/common/nsc.c index 257b2c056..f2ca8caf7 100644 --- a/src/lib/common/nsc.c +++ b/src/lib/common/nsc.c @@ -112,7 +112,7 @@ struct castr pchr_ca[] = { #define CURSTR struct pchrstr {"uid", fldoff(p_uid), NSC_INT, 0, NULL, EF_PRODUCT, 0}, {"name", fldoff(p_name), NSC_STRING, 0, NULL, EF_BAD, 0}, - {"sname", fldoff(p_sname), NSC_STRING, 0, NULL, EF_BAD, NSC_CONST}, + {"sname", fldoff(p_sname), NSC_STRING, 0, NULL, EF_BAD, 0}, {"ctype", fldoff(p_ctype), NSC_SITYPE(i_type), MAXPRCON, NULL, EF_ITEM, 0}, {"camt", fldoff(p_camt), NSC_USHORT, MAXPRCON, NULL, EF_BAD, 0}, -- 2.43.0