Skip to content

Commit 7fd90e0

Browse files
committed
Merge branch 'nd/daemon-informative-errors-typofix' into maint
The "--[no-]informative-errors" options to "git daemon" were parsed a bit too loosely, allowing any other string after these option names. * nd/daemon-informative-errors-typofix: daemon: be strict at parsing parameters --[no-]informative-errors
2 parents 3b72885 + 82246b7 commit 7fd90e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

daemon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,11 +1278,11 @@ int main(int argc, char **argv)
12781278
make_service_overridable(arg + 18, 0);
12791279
continue;
12801280
}
1281-
if (!prefixcmp(arg, "--informative-errors")) {
1281+
if (!strcmp(arg, "--informative-errors")) {
12821282
informative_errors = 1;
12831283
continue;
12841284
}
1285-
if (!prefixcmp(arg, "--no-informative-errors")) {
1285+
if (!strcmp(arg, "--no-informative-errors")) {
12861286
informative_errors = 0;
12871287
continue;
12881288
}

0 commit comments

Comments
 (0)