<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/daemon.c, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-05-31T23:59:26Z</updated>
<entry>
<title>Rewrite dynamic structure initializations to runtime assignment</title>
<updated>2010-05-31T23:59:26Z</updated>
<author>
<name>Gary V. Vaughan</name>
<email>git@mlists.thewrittenword.com</email>
</author>
<published>2010-05-14T09:31:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66dbfd55e38128db02eb340fcd89f54b734d4c6e'/>
<id>urn:sha1:66dbfd55e38128db02eb340fcd89f54b734d4c6e</id>
<content type='text'>
Unfortunately, there are still plenty of production systems with
vendor compilers that choke unless all compound declarations can be
determined statically at compile time, for example hpux10.20 (I can
provide a comprehensive list of our supported platforms that exhibit
this problem if necessary).

This patch simply breaks apart any compound declarations with dynamic
initialisation expressions, and moves the initialisation until after
the last declaration in the same block, in all the places necessary to
have the offending compilers accept the code.

Signed-off-by: Gary V. Vaughan &lt;gary@thewrittenword.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/maint-daemon-sans-ss-family'</title>
<updated>2010-04-03T19:28:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-04-03T19:28:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d718dd0732c125306670d61880652f1b596a0c3e'/>
<id>urn:sha1:d718dd0732c125306670d61880652f1b596a0c3e</id>
<content type='text'>
* bc/maint-daemon-sans-ss-family:
  daemon.c: avoid accessing ss_family member of struct sockaddr_storage
</content>
</entry>
<entry>
<title>daemon: parse_host_and_port SIGSEGV if port is specified</title>
<updated>2010-03-20T15:49:31Z</updated>
<author>
<name>Imre Deak</name>
<email>imre.deak@gmail.com</email>
</author>
<published>2010-03-20T02:23:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9bd32351078d1f664a1608763a92ab402b255f0'/>
<id>urn:sha1:e9bd32351078d1f664a1608763a92ab402b255f0</id>
<content type='text'>
This typo will lead to git-daemon dying any time the connect
string includes a port after the host= attribute. This can lead
for example to one of the following error messages on the client
side when someone tries git clone git://...:&lt;port&gt;.

When the daemon is running on localhost:
  fatal: The remote end hung up unexpectedly

or when the daemon is connected through an ssh tunnel:
  fatal: protocol error: bad line length character: erro

In the latter case 'erro' comes from the daemon's reply:
  error: git-daemon died of signal 11

Signed-off-by: Imre Deak &lt;imre.deak@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon.c: avoid accessing ss_family member of struct sockaddr_storage</title>
<updated>2010-03-17T02:07:09Z</updated>
<author>
<name>Brandon Casey</name>
<email>drafnel@gmail.com</email>
</author>
<published>2010-03-15T22:10:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3aff874af239965ea78c37d14266d6c2233ad431'/>
<id>urn:sha1:3aff874af239965ea78c37d14266d6c2233ad431</id>
<content type='text'>
When NO_SOCKADDR_STORAGE is set for a platform, either sockaddr_in or
sockaddr_in6 is used intead.  Neither of which has an ss_family member.
They have an sin_family and sin6_family member respectively.  Since the
addrcmp() function accesses the ss_family member of a sockaddr_storage
struct, compilation fails on platforms which define NO_SOCKADDR_STORAGE.

Since any sockaddr_* structure can be cast to a struct sockaddr and
have its sa_family member read, do so here to workaround this issue.

Thanks to Martin Storsjö for pointing out the fix, and Gary Vaughan
for drawing attention to the issue.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Typofixes outside documentation area</title>
<updated>2010-02-04T05:28:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-02-04T05:23:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9517e6b84357252e1882091343661c34d978771e'/>
<id>urn:sha1:9517e6b84357252e1882091343661c34d978771e</id>
<content type='text'>
    begining -&gt; beginning
    canonicalizations -&gt; canonicalization
    comand -&gt; command
    dewrapping -&gt; unwrapping
    dirtyness -&gt; dirtiness
    DISCLAMER -&gt; DISCLAIMER
    explicitely -&gt; explicitly
    feeded -&gt; fed
    impiled -&gt; implied
    madatory -&gt; mandatory
    mimick -&gt; mimic
    preceeding -&gt; preceding
    reqeuest -&gt; request
    substition -&gt; substitution

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'il/maint-colon-address'</title>
<updated>2010-01-27T22:56:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-27T22:56:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68186857a9bb0a71e9456155623e02d398a5b817'/>
<id>urn:sha1:68186857a9bb0a71e9456155623e02d398a5b817</id>
<content type='text'>
* il/maint-colon-address:
  Allow use of []-wrapped addresses in git://
  Support addresses with ':' in git-daemon
</content>
</entry>
<entry>
<title>Support addresses with ':' in git-daemon</title>
<updated>2010-01-26T18:52:52Z</updated>
<author>
<name>Ilari Liusvaara</name>
<email>ilari.liusvaara@elisanet.fi</email>
</author>
<published>2010-01-26T18:24:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8dbd76d57806fd1305612d56d56a4cc7665c599'/>
<id>urn:sha1:e8dbd76d57806fd1305612d56d56a4cc7665c599</id>
<content type='text'>
If host address could have ':' in it (e.g. numeric IPv6 address), then
host and port could not be uniquely parsed. Fix this by parsing the
"["&lt;host&gt;"]":&lt;port&gt; and "["&lt;host&gt;"]" notations. Currently the built-in
git:// client would send &lt;host&gt;:&lt;port&gt; or &lt;host&gt; for such thing, but
it doesn't matter as due to bugs, resolving address fails if &lt;host&gt;
contains ':'.

Signed-off-by: Ilari Liusvaara &lt;ilari.liusvaara@elisanet.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/warn-author-committer-after-commit'</title>
<updated>2010-01-20T22:40:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-20T22:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0877510ad4e8b951b08f9cbb25cfc0d994468979'/>
<id>urn:sha1:0877510ad4e8b951b08f9cbb25cfc0d994468979</id>
<content type='text'>
* jk/warn-author-committer-after-commit:
  user_ident_sufficiently_given(): refactor the logic to be usable from elsewhere
  commit.c::print_summary: do not release the format string too early
  commit: allow suppression of implicit identity advice
  commit: show interesting ident information in summary
  strbuf: add strbuf_addbuf_percentquote
  strbuf_expand: convert "%%" to "%"

Conflicts:
	builtin-commit.c
	ident.c
</content>
</entry>
<entry>
<title>strbuf_expand: convert "%%" to "%"</title>
<updated>2010-01-14T17:24:42Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-01-13T17:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0a0416a34a7ef5c64f4e0226371e4cab8c1ba982'/>
<id>urn:sha1:0a0416a34a7ef5c64f4e0226371e4cab8c1ba982</id>
<content type='text'>
The only way to safely quote arbitrary text in a pretty-print user
format is to replace instances of "%" with "%x25". This is slightly
unreadable, and many users would expect "%%" to produce a single
"%", as that is what printf format specifiers do.

This patch converts "%%" to "%" for all users of strbuf_expand():

 (1) git-daemon interpolated paths

 (2) pretty-print user formats

 (3) merge driver command lines

Case (1) was already doing the conversion itself outside of
strbuf_expand(). Case (2) is the intended beneficiary of this patch.
Case (3) users probably won't notice, but as this is user-facing
behavior, consistently providing the quoting mechanism makes sense.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: consider only address in kill_some_child()</title>
<updated>2010-01-10T07:43:49Z</updated>
<author>
<name>Erik Faye-Lund</name>
<email>kusmabite@googlemail.com</email>
</author>
<published>2010-01-09T14:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15515b73716a6ead5a5a348a7d04cc7d73c74bff'/>
<id>urn:sha1:15515b73716a6ead5a5a348a7d04cc7d73c74bff</id>
<content type='text'>
kill_some_child() compares the entire sockaddr_storage
structure (with the pad-bits zeroed out) when trying to
find out if connections originate from the same host.
However, sockaddr_storage contains the port-number for
the connection (which varies between connections), so
the comparison always fails.

Change the code so we only consider the host-address,
by introducing the addrcmp()-function that inspects
the address family and compare as appropriate.

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>
