<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat/win32/syslog.c, branch v2.3.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2011-10-07T23:12:25Z</updated>
<entry>
<title>mingw: avoid using strbuf in syslog</title>
<updated>2011-10-07T23:12:25Z</updated>
<author>
<name>Erik Faye-Lund</name>
<email>kusmabite@gmail.com</email>
</author>
<published>2011-10-06T17:52:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a6b149c64f6ba8cc3eef70c6901ee0c67a137a7'/>
<id>urn:sha1:2a6b149c64f6ba8cc3eef70c6901ee0c67a137a7</id>
<content type='text'>
strbuf can call die, which again can call syslog from git-daemon.

Endless recursion is no fun; fix it by hand-rolling the logic. As
a side-effect malloc/realloc errors are changed into non-fatal
warnings; this is probably an improvement anyway.

Signed-off-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Noticed-by: Johannes Sixt &lt;j.sixt@viscovery.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mingw: implement syslog</title>
<updated>2010-11-04T23:53:49Z</updated>
<author>
<name>Mike Pape</name>
<email>dotzenlabs@gmail.com</email>
</author>
<published>2010-11-04T01:35:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=088d880247dc7bb1a27f07e320bab7f9b63e06bc'/>
<id>urn:sha1:088d880247dc7bb1a27f07e320bab7f9b63e06bc</id>
<content type='text'>
Syslog does not usually exist on Windows, so implement our own using
Window's ReportEvent mechanism.

Strings containing "%1" gets expanded into them selves by ReportEvent,
resulting in an unreadable string. "%2" and above is not a problem.
Unfortunately, on Windows an IPv6 address can contain "%1", so expand
"%1" to "% 1" before reporting. "%%1" is also a problem for ReportEvent,
but that string cannot occur in an IPv6 address.

Signed-off-by: Mike Pape &lt;dotzenlabs@gmail.com&gt;
Signed-off-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
