summaryrefslogtreecommitdiff
path: root/builtin/verify-tag.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2013-01-24 15:21:46 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-25 10:41:49 -0800
commitdc342a25d1b48cb53448fe0e5dde578edce3122c (patch)
tree0d066af74121e09b9443fc3bbde4292b2f635dde /builtin/verify-tag.c
parentGit 1.7.12.4 (diff)
downloadtgif-dc342a25d1b48cb53448fe0e5dde578edce3122c.tar.xz
ident: do not drop username when reading from /etc/mailname
An earlier conversion from fgets() to strbuf_getline() in the codepath to read from /etc/mailname to learn the default host-part of the ident e-mail address forgot that strbuf_getline() stores the line at the beginning of the buffer just like fgets(). The "username@" the caller has prepared in the strbuf, expecting the function to append the host-part to it, was lost because of this. Reported-by: Mihai Rusu <dizzy@google.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/verify-tag.c')
0 files changed, 0 insertions, 0 deletions