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
This commit is contained in:
commit
7fd90e0e72
4
daemon.c
4
daemon.c
@ -1278,11 +1278,11 @@ int main(int argc, char **argv)
|
|||||||
make_service_overridable(arg + 18, 0);
|
make_service_overridable(arg + 18, 0);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!prefixcmp(arg, "--informative-errors")) {
|
if (!strcmp(arg, "--informative-errors")) {
|
||||||
informative_errors = 1;
|
informative_errors = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!prefixcmp(arg, "--no-informative-errors")) {
|
if (!strcmp(arg, "--no-informative-errors")) {
|
||||||
informative_errors = 0;
|
informative_errors = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user