Re: [PATCH] config_set_multivar(): disallow newlines in keys

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2007-01-23 02:06:50
On 1/20/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> --- a/config.c
> +++ b/config.c
> @@ -661,6 +661,11 @@ int git_config_set_multivar(const char* key, const char* value,
>                                 goto out_free;
>                         }
>                         c = tolower(c);
> +               } else if (c == '\n') {
> +                       fprintf(stderr, "invalid key (newline): %s\n", key);

BTW, why config.c never uses error() or warn()?
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Jan 23 02:07:11 2007

This archive was generated by hypermail 2.1.8 : 2007-01-23 02:08:43 EST