From 5b3fd465d16547f1175b211dd5366123f260fedb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 30 Apr 2016 22:04:50 +0200 Subject: Fix parsing of auto-generated config file When starting with empty config file, saving it by 'write file', and then re-starting osmo-cscn, it would complain: Error occurred during reading below line: long name Osmocom Circuit-Switched Core Network The problem is that the vty parser is configured to expect a single token and not a list of tokens here, but we initialize the default value with multiple words (which are treated as separate token). --- openbsc/src/osmo-cscn/cscn_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c index a3787aa8c..dd1fc36f3 100644 --- a/openbsc/src/osmo-cscn/cscn_main.c +++ b/openbsc/src/osmo-cscn/cscn_main.c @@ -240,7 +240,7 @@ struct gsm_network *cscn_network_init(void *ctx, if (!net) return NULL; - net->name_long = talloc_strdup(net, "Osmocom Circuit-Switched Core Network"); + net->name_long = talloc_strdup(net, "OsmoCSCN"); net->name_short = talloc_strdup(net, "OsmoCSCN"); return net; -- cgit v1.2.3