X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=credential-store.c;h=00aea3aa304f2731da070c447f694591b3021bc9;hb=4e09cf2acf00c63848c365479c61d80af62eceba;hp=f6925096ffa7e036b4e63f65ce372c596c9e1b70;hpb=8e699cdb9fc88177617329a10af3c9b28185f2c8;p=thirdparty%2Fgit.git diff --git a/credential-store.c b/credential-store.c index f6925096ff..00aea3aa30 100644 --- a/credential-store.c +++ b/credential-store.c @@ -52,7 +52,7 @@ static void print_entry(struct credential *c) static void print_line(struct strbuf *buf) { strbuf_addch(buf, '\n'); - write_or_die(credential_lock.fd, buf->buf, buf->len); + write_or_die(get_lock_file_fd(&credential_lock), buf->buf, buf->len); } static void rewrite_credential_file(const char *fn, struct credential *c,