git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix git-daemon argument-parsing bug

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Oct 21, 2005, 01:34 UTC
Message-ID
<435845C2.3010504@zytor.com>
Fix stupid bug in parsing the --init-timeout option.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/daemon.c b/daemon.c
--- a/daemon.c
+++ b/daemon.c
@@ -612,7 +612,7 @@ int main(int argc, char **argv)
 		if (!strncmp(arg, "--timeout=", 10)) {
 			timeout = atoi(arg+10);
 		}
-		if (!strncmp(arg, "--init-timeout=", 10)) {
+		if (!strncmp(arg, "--init-timeout=", 15)) {
 			init_timeout = atoi(arg+15);
 		}
 		if (!strcmp(arg, "--")) {
Message 1 of 1 in “Fix git-daemon argument-parsing bug”
  1. Fix git-daemon argument-parsing bugH. Peter Anvin, Oct 21, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.