<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/daemon.c, branch v2.3.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-10-14T17:49:23Z</updated>
<entry>
<title>Merge branch 'rs/daemon-fixes'</title>
<updated>2014-10-14T17:49:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-14T17:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc11fc2de8d92b9e7935ad070941e86f4e33000b'/>
<id>urn:sha1:dc11fc2de8d92b9e7935ad070941e86f4e33000b</id>
<content type='text'>
"git daemon" (with NO_IPV6 build configuration) used to incorrectly
use the hostname even when gethostbyname() reported that the given
hostname is not found.

* rs/daemon-fixes:
  daemon: remove write-only variable maxfd
  daemon: fix error message after bind()
  daemon: handle gethostbyname() error
</content>
</entry>
<entry>
<title>daemon: remove write-only variable maxfd</title>
<updated>2014-10-01T20:34:56Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-10-01T10:21:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=107efbeb2409ac3fb01560a42067c8cc506aa249'/>
<id>urn:sha1:107efbeb2409ac3fb01560a42067c8cc506aa249</id>
<content type='text'>
It became unused when 6573faff (NO_IPV6 support for git daemon) replaced
select() with poll().

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: fix error message after bind()</title>
<updated>2014-10-01T20:34:54Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-10-01T10:18:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9d1b9aa9e10da398f430bc619b361d83bee6df7d'/>
<id>urn:sha1:9d1b9aa9e10da398f430bc619b361d83bee6df7d</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon: handle gethostbyname() error</title>
<updated>2014-10-01T20:34:53Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-10-01T10:16:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb6c403500dd0b0d78b7b00d7ed0bf6b5daccc4e'/>
<id>urn:sha1:eb6c403500dd0b0d78b7b00d7ed0bf6b5daccc4e</id>
<content type='text'>
If the user-supplied hostname can't be found then we should not use it.
We already avoid doing that in the non-NO_IPV6 case by checking if the
return value of getaddrinfo() is zero (success).  Do the same in the
NO_IPV6 case and make sure the return value of gethostbyname() isn't
NULL before dereferencing this pointer.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/child-process-init'</title>
<updated>2014-09-11T17:33:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-09-11T17:33:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=825fd93767510895a98ad7f12e3c1af3e40e367b'/>
<id>urn:sha1:825fd93767510895a98ad7f12e3c1af3e40e367b</id>
<content type='text'>
Code clean-up.

* rs/child-process-init:
  run-command: inline prepare_run_command_v_opt()
  run-command: call run_command_v_opt_cd_env() instead of duplicating it
  run-command: introduce child_process_init()
  run-command: introduce CHILD_PROCESS_INIT
</content>
</entry>
<entry>
<title>run-command: introduce CHILD_PROCESS_INIT</title>
<updated>2014-08-20T16:53:37Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-08-19T19:09:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3180279322c7450a47decf8833de47f444ca93f'/>
<id>urn:sha1:d3180279322c7450a47decf8833de47f444ca93f</id>
<content type='text'>
Most struct child_process variables are cleared using memset first after
declaration.  Provide a macro, CHILD_PROCESS_INIT, that can be used to
initialize them statically instead.  That's shorter, doesn't require a
function call and is slightly more readable (especially given that we
already have STRBUF_INIT, ARGV_ARRAY_INIT etc.).

Helped-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>daemon.c: replace `git_config()` with `git_config_get_bool()` family</title>
<updated>2014-08-07T20:33:25Z</updated>
<author>
<name>Tanay Abhra</name>
<email>tanayabh@gmail.com</email>
</author>
<published>2014-08-07T16:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8939d32d818180cfd64c9eed7ad97bf2601d8f5f'/>
<id>urn:sha1:8939d32d818180cfd64c9eed7ad97bf2601d8f5f</id>
<content type='text'>
Use `git_config_get_bool()` family instead of `git_config()` to take advantage of
the config-set API which provides a cleaner control flow.

Signed-off-by: Tanay Abhra &lt;tanayabh@gmail.com&gt;
Reviewed-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cc/replace-edit'</title>
<updated>2014-07-16T18:25:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-16T18:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dcc1b3851779ba1e3f55c1116852d87999d2c936'/>
<id>urn:sha1:dcc1b3851779ba1e3f55c1116852d87999d2c936</id>
<content type='text'>
Teach "git replace" an "--edit" mode.

* cc/replace-edit:
  replace: use argv_array in export_object
  avoid double close of descriptors handed to run_command
  replace: replace spaces with tabs in indentation
</content>
</entry>
<entry>
<title>avoid double close of descriptors handed to run_command</title>
<updated>2014-06-25T22:27:24Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-06-24T09:45:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=28bf9429ef2e1534be8d3a59ad236834be542b86'/>
<id>urn:sha1:28bf9429ef2e1534be8d3a59ad236834be542b86</id>
<content type='text'>
When a file descriptor is given to run_command via the
"in", "out", or "err" parameters, run_command takes
ownership. The descriptor will be closed in the parent
process whether the process is spawned successfully or not,
and closing it again is wrong.

In practice this has not caused problems, because we usually
close() right after start_command returns, meaning no other
code has opened a descriptor in the meantime. So we just get
EBADF and ignore it (rather than accidentally closing
somebody else's descriptor!).

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: use skip_prefix to avoid magic numbers</title>
<updated>2014-06-20T17:45:18Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-06-18T19:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d12c24d2a96f8f9aeb100b800d8fb217f28a6a2a'/>
<id>urn:sha1:d12c24d2a96f8f9aeb100b800d8fb217f28a6a2a</id>
<content type='text'>
Like earlier cases, we can use skip_prefix to avoid magic
numbers that must match the length of starts_with prefixes.
However, the numbers are a little more complicated here, as
we keep parsing past the prefix. We can solve it by keeping
a running pointer as we parse; its final value is the
location we want.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
