From: Johannes Schindelin Date: Sun, 07 May 2006 11:40:53 GMT Subject: Re: [PATCH] config: mmap() the contents of the config file Message-ID: In-Reply-To: Hi, On Sun, 7 May 2006, Johannes Schindelin wrote: > This makes it possible to rewrite the config without accessing the config > file twice. Since commit c2b9e699, this is needed, too: diff --git a/config.c b/config.c index 59006fa..30effe3 100644 --- a/config.c +++ b/config.c @@ -362,7 +362,7 @@ static int store_aux(const char* key, co } else if (strrchr(key, '.') - key == store.baselen && !strncmp(key, store.key, store.baselen)) { store.state = SECTION_SEEN; - store.offset[store.seen] = ftell(config_file); + store.offset[store.seen] = config_offset; } } return 0; -- 1.3.2.g4e38b-dirty