Merge branch 'nl/credential-crlf'
Loosen the parser in the receiving end of the credential protocol to allow credential helper to terminate lines with CRLF line ending, as well as LF line ending. * nl/credential-crlf: credential: treat CR/LF as line endings in the credential protocol
This commit is contained in:
@ -202,7 +202,7 @@ int credential_read(struct credential *c, FILE *fp)
|
|||||||
{
|
{
|
||||||
struct strbuf line = STRBUF_INIT;
|
struct strbuf line = STRBUF_INIT;
|
||||||
|
|
||||||
while (strbuf_getline_lf(&line, fp) != EOF) {
|
while (strbuf_getline(&line, fp) != EOF) {
|
||||||
char *key = line.buf;
|
char *key = line.buf;
|
||||||
char *value = strchr(key, '=');
|
char *value = strchr(key, '=');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user