aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-12-23 12:36:33 -0800
committerRuss Cox <rsc@swtch.com>2008-12-23 12:36:33 -0800
commit5df56af730ccac2a4125d7e1c356af9d69dc2f6b (patch)
tree638ac0ffbee8b9941fc7b1392c3c3dd7b675e302 /src/cmd/venti
parentece9d931eb41e9693c9c3b5e29c6e514bb328713 (diff)
downloadplan9port-5df56af730ccac2a4125d7e1c356af9d69dc2f6b.tar.gz
plan9port-5df56af730ccac2a4125d7e1c356af9d69dc2f6b.tar.bz2
plan9port-5df56af730ccac2a4125d7e1c356af9d69dc2f6b.zip
venti: ignore mgr lines in config
Diffstat (limited to 'src/cmd/venti')
-rw-r--r--src/cmd/venti/srv/config.c4
1 files changed, 3 insertions, 1 deletions
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];