@@ 199,6 199,7 @@ symbolsgen(int n, Dir *d, void *aux)
Symbol *s = symbols->items[n];
mkfilestat(d, s->name, s->qsymbol, 0666);
+ d->length = strlen(printval(s->value));
return 0;
}
@@ 481,6 482,7 @@ fsstat(Req *r)
break;
case Qlpaobj:
mkfilestat(&r->d, symb->name, symb->qsymbol, 0444);
+ r->d.length = strlen(printval(symb->value));
break;
default:
err = Enotyet;
@@ 78,6 78,7 @@ symset(Symtab *s, uvlong id, void *newval)
{
wlock(&s->lock);
s->symbols[id]->value = newval;
+ s->symbols[id]->qsymbol.vers++;
wunlock(&s->lock);
}