threads / patch / 2172

patchFix git-daemon argument-parsing bug

Subject: [PATCH] Fix git-daemon argument-parsing bug

## tl;dr

One message between Oct 21, 2005 and Oct 21, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

H. Peter Anvin· Oct 21, 2005, 01:34 UTC · lore
Fix stupid bug in parsing the --init-timeout option.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Show changes to daemon.c +1 −1
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, "--")) {

← back to recent threads