From: ludo@gnu.org (Ludovic Courtès)
To: Leo Famulari <leo@famulari.name>
Cc: 25422@debbugs.gnu.org
Subject: bug#25422: GIT_SSL_CAINFO set incorrectly
Date: Sat, 14 Jan 2017 22:20:59 +0100 [thread overview]
Message-ID: <87h951jq2s.fsf@gnu.org> (raw)
In-Reply-To: <20170111203631.GA30202@jasmine> (Leo Famulari's message of "Wed, 11 Jan 2017 15:36:31 -0500")
Hi!
Leo Famulari <leo@famulari.name> skribis:
> Recently, Guix started to set the environment GIT_SSL_CAINFO like a
> search path, instead of pointing to single file, which is what it should
> be.
I don’t think anything has changed, maybe it’s just that your profile
now includes ‘ssl/certs’?
On my GuixSD machine, I still have:
$ env |grep GIT_
GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
but that’s because ~/.guix-profile does not contain certificates.
At any rate, you are right that GIT_SSL_CAINFO should be a single file.
There’s a note in the code:
(native-search-paths
;; For HTTPS access, Git needs a single-file certificate bundle, specified
;; with $GIT_SSL_CAINFO.
;; FIXME: This variable designates a single file; it is not a search path.
(list (search-path-specification
(variable "GIT_SSL_CAINFO")
(file-type 'regular)
(files '("etc/ssl/certs/ca-certificates.crt")))))
So we’re abusing the search path mechanism here.
A proper fix might be to add an option in ‘search-path-specification’ to
pick only the first match.
WDYT?
Thanks,
Ludo’.
next prev parent reply other threads:[~2017-01-14 21:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-11 20:36 bug#25422: GIT_SSL_CAINFO set incorrectly Leo Famulari
2017-01-14 21:20 ` Ludovic Courtès [this message]
2017-01-22 21:51 ` bug#25422: [PATCH 0/2] Support single-entry search paths Ludovic Courtès
2017-01-22 21:52 ` bug#25422: [PATCH 1/2] guix package: Honor the order of profiles when -p appears multiple times Ludovic Courtès
2017-01-22 21:52 ` bug#25422: [PATCH 2/2] search-paths: Allow specs with #f as their separator Ludovic Courtès
2017-01-23 13:00 ` bug#25422: [PATCH 0/2] Support single-entry search paths Ricardo Wurmus
2017-01-23 22:02 ` Ludovic Courtès
2017-04-02 22:22 ` Ludovic Courtès
2017-01-20 4:27 ` bug#25422: GIT_SSL_CAINFO set incorrectly Mekeor Melire
2017-01-23 13:57 ` Ludovic Courtès
2017-02-10 16:22 ` Mekeor Melire
2017-02-10 20:51 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h951jq2s.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=25422@debbugs.gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).