GNU bug report logs -
#15866
Gnutls elisp code doesn't properly check for file existence
Previous Next
Reported by: "" <emacs <at> kosowsky.org>
Date: Tue, 12 Nov 2013 00:22:01 UTC
Severity: normal
Tags: fixed
Fixed in version 25.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Mon, 11 Nov 2013 19:20:08 -0500
> From: "" <emacs <at> kosowsky.org>
>
> i] If the function 'expand-file-name' has an associated magic file
> handler, the function expand-file-name is called to convert it "to
> absolute, and canonicalize it" (quoted from the function
> definition).
>
> ii] The test for file-exists-p is then wrapped in a 'let' construct
> with file-name-handler-alist set to nil. This effectively shuts
> off magic file handling and ensures that file-exists-p now checks
> for true OS existence of the now potentially expanded path.
>
> iii]The function gnutls-trustfiles is now assured that it will be
> passed an OS-valid path.
Thanks.
As I wrote elsewhere, I agree that gnutls.el should ignore file
handlers when it looks for certificate files.
But then _not_ ignoring the expand-file-name handler makes little
sense to me: the result could exist as a local file name that has no
relation whatsoever to certificates, which will again fail in strange
ways inside the GnuTLS library.
So I think we should do ii], but not i].
Btw, I think many Emacs packages don't make sense with remote files,
so they should also ignore file handlers. IOW, this is not specific
to gnutls.el.
This bug report was last modified 10 years and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.