<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/credential-cache--daemon.c, branch v2.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.9.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.9.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-05-17T21:38:28Z</updated>
<entry>
<title>Merge branch 'nd/error-errno'</title>
<updated>2016-05-17T21:38:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-17T21:38:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=40cfc95856594ddd04ae6ef3bfd041346c4854ec'/>
<id>urn:sha1:40cfc95856594ddd04ae6ef3bfd041346c4854ec</id>
<content type='text'>
The code for warning_errno/die_errno has been refactored and a new
error_errno() reporting helper is introduced.

* nd/error-errno: (41 commits)
  wrapper.c: use warning_errno()
  vcs-svn: use error_errno()
  upload-pack.c: use error_errno()
  unpack-trees.c: use error_errno()
  transport-helper.c: use error_errno()
  sha1_file.c: use {error,die,warning}_errno()
  server-info.c: use error_errno()
  sequencer.c: use error_errno()
  run-command.c: use error_errno()
  rerere.c: use error_errno() and warning_errno()
  reachable.c: use error_errno()
  mailmap.c: use error_errno()
  ident.c: use warning_errno()
  http.c: use error_errno() and warning_errno()
  grep.c: use error_errno()
  gpg-interface.c: use error_errno()
  fast-import.c: use error_errno()
  entry.c: use error_errno()
  editor.c: use error_errno()
  diff-no-index.c: use error_errno()
  ...
</content>
</entry>
<entry>
<title>credential-cache--daemon.c: use warning_errno()</title>
<updated>2016-05-09T19:29:08Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-05-08T09:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=26604f9f621b7b5710309671168d98722b8f5f33'/>
<id>urn:sha1:26604f9f621b7b5710309671168d98722b8f5f33</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/credential-cache-comment-exit'</title>
<updated>2016-04-06T18:39:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-04-06T18:39:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67827f582f06b291062389fe43b14db679cc832d'/>
<id>urn:sha1:67827f582f06b291062389fe43b14db679cc832d</id>
<content type='text'>
A code clarification.

* jk/credential-cache-comment-exit:
  credential-cache--daemon: clarify "exit" action semantics
</content>
</entry>
<entry>
<title>credential-cache--daemon: clarify "exit" action semantics</title>
<updated>2016-03-18T21:48:36Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-03-18T06:12:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7d5e9c9849a809ff70223037bf6d569a8e2d3e66'/>
<id>urn:sha1:7d5e9c9849a809ff70223037bf6d569a8e2d3e66</id>
<content type='text'>
When this code was originally written, there wasn't much
thought given to the timing between a client asking for
"exit", the daemon signaling that the action is done (with
EOF), and the actual cleanup of the socket.

However, we need to care about this so that our test scripts
do not end up racy (e.g., by asking for an exit and checking
that the socket was cleaned up). The code that is already
there happens to behave very reasonably; let's add a comment
to make it clear that any changes should retain the same
behavior.

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>Merge branch 'jg/credential-cache-chdir-to-sockdir'</title>
<updated>2016-02-26T21:37:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-02-26T21:37:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a24444aaeaabd8559751b02015c025157604f38'/>
<id>urn:sha1:2a24444aaeaabd8559751b02015c025157604f38</id>
<content type='text'>
The "credential-cache" daemon process used to run in whatever
directory it happened to start in, but this made umount(2)ing the
filesystem that houses the repository harder; now the process
chdir()s to the directory that house its own socket on startup.

* jg/credential-cache-chdir-to-sockdir:
  credential-cache--daemon: change to the socket dir on startup
  credential-cache--daemon: disallow relative socket path
  credential-cache--daemon: refactor check_socket_directory
</content>
</entry>
<entry>
<title>credential-cache--daemon: change to the socket dir on startup</title>
<updated>2016-02-23T22:48:03Z</updated>
<author>
<name>Jon Griffiths</name>
<email>jon_p_griffiths@yahoo.com</email>
</author>
<published>2016-02-23T07:16:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e6144905188a76ef75c5418bd48c333adeebdcd'/>
<id>urn:sha1:6e6144905188a76ef75c5418bd48c333adeebdcd</id>
<content type='text'>
Changing to the socket path stops the daemon holding open
the directory the user was in when it was started,
preventing umount from working. We're already holding open a
socket in that directory, so there's no downside.

Thanks-to: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Jon Griffiths &lt;jon_p_griffiths@yahoo.com&gt;
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>credential-cache--daemon: disallow relative socket path</title>
<updated>2016-02-23T20:56:27Z</updated>
<author>
<name>Jon Griffiths</name>
<email>jon_p_griffiths@yahoo.com</email>
</author>
<published>2016-02-23T07:15:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd93b8d9becb01d21871b63e34c2e824c60b1e8c'/>
<id>urn:sha1:bd93b8d9becb01d21871b63e34c2e824c60b1e8c</id>
<content type='text'>
Relative socket paths are dangerous since the user cannot generally
control when the daemon starts (initially, after a timeout, kill or
crash). Since the daemon creates but does not delete the socket
directory, this could lead to spurious directory creation relative
to the users cwd.

Suggested-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Jon Griffiths &lt;jon_p_griffiths@yahoo.com&gt;
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>credential-cache--daemon: refactor check_socket_directory</title>
<updated>2016-02-23T20:56:26Z</updated>
<author>
<name>Jon Griffiths</name>
<email>jon_p_griffiths@yahoo.com</email>
</author>
<published>2016-02-23T07:15:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6e5e2864f96ebce9ec6656841c8965bcdf1b37f'/>
<id>urn:sha1:a6e5e2864f96ebce9ec6656841c8965bcdf1b37f</id>
<content type='text'>
This function does an early return, and therefore has to
repeat its cleanup. We can stick the later bit of the
function into an "else" and avoid duplicating the shared
part (which will get bigger in a future patch).

Let's also rename the function to init_socket_directory. It
not only checks the directory but also creates it. Saying
"init" is more accurate.

Signed-off-by: Jon Griffiths &lt;jon_p_griffiths@yahoo.com&gt;
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>strbuf: introduce strbuf_getline_{lf,nul}()</title>
<updated>2016-01-15T18:12:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-01-13T23:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f309aeb8225a9c26f20c0dbc031f1ea8df75d49'/>
<id>urn:sha1:8f309aeb8225a9c26f20c0dbc031f1ea8df75d49</id>
<content type='text'>
The strbuf_getline() interface allows a byte other than LF or NUL as
the line terminator, but this is only because I wrote these
codepaths anticipating that there might be a value other than NUL
and LF that could be useful when I introduced line_termination long
time ago.  No useful caller that uses other value has emerged.

By now, it is clear that the interface is overly broad without a
good reason.  Many codepaths have hardcoded preference to read
either LF terminated or NUL terminated records from their input, and
then call strbuf_getline() with LF or NUL as the third parameter.

This step introduces two thin wrappers around strbuf_getline(),
namely, strbuf_getline_lf() and strbuf_getline_nul(), and
mechanically rewrites these call sites to call either one of
them.  The changes contained in this patch are:

 * introduction of these two functions in strbuf.[ch]

 * mechanical conversion of all callers to strbuf_getline() with
   either '\n' or '\0' as the third parameter to instead call the
   respective thin wrapper.

After this step, output from "git grep 'strbuf_getline('" would
become a lot smaller.  An interim goal of this series is to make
this an empty set, so that we can have strbuf_getline_crlf() take
over the shorter name strbuf_getline().

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>credential-cache: new option to ignore sighup</title>
<updated>2015-11-20T13:02:07Z</updated>
<author>
<name>Noam Postavsky</name>
<email>npostavs@users.sourceforge.net</email>
</author>
<published>2015-11-10T00:26:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f4d4746c14f928b7b6cdc2d21e4bbb2a770187f'/>
<id>urn:sha1:7f4d4746c14f928b7b6cdc2d21e4bbb2a770187f</id>
<content type='text'>
Introduce new option "credentialCache.ignoreSIGHUP" which stops
git-credential-cache--daemon from quitting on SIGHUP.  This is useful
when "git push" is started from Emacs, because all child
processes (including the daemon) will receive a SIGHUP when "git push"
exits.

Signed-off-by: Noam Postavsky &lt;npostavs@users.sourceforge.net&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
</feed>
