From 5df56af730ccac2a4125d7e1c356af9d69dc2f6b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 23 Dec 2008 12:36:33 -0800 Subject: venti: ignore mgr lines in config --- src/cmd/venti/srv/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cmd/venti') diff --git a/src/cmd/venti/srv/config.c b/src/cmd/venti/srv/config.c index 56ebaff7..1664147f 100644 --- a/src/cmd/venti/srv/config.c +++ b/src/cmd/venti/srv/config.c @@ -86,7 +86,9 @@ runconfig(char *file, Config *config) } line = estrdup(s); i = getfields(s, flds, MaxArgs + 1, 1, " \t\r"); - if(i == 2 && strcmp(flds[0], "isect") == 0){ + if(i > 0 && strcmp(flds[0], "mgr") == 0){ + /* do nothing */ + }else if(i == 2 && strcmp(flds[0], "isect") == 0){ sv = MKN(ISect*, config->nsects + 1); for(i = 0; i < config->nsects; i++) sv[i] = config->sects[i]; -- cgit v1.2.3