From 4e464fa98ae677451b4e4b722b0cf545a97ebbba Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Thu, 19 Apr 2018 11:04:01 +0200 Subject: Handle chrooted environments in Tramp * doc/misc/tramp.texi (Frequently Asked Questions): New item, chrooted environments. * lisp/net/tramp.el (tramp-local-host-regexp): Make it a defcustom. Allow nil. (tramp-local-host-p): * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Handle this. --- doc/misc/tramp.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/misc') diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index f0ea073ed09..7ae7150930a 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -3294,6 +3294,7 @@ Keep the file @option{tramp-persistency-file-name}, which is where @value{tramp} caches remote information about hosts and files. Caching is enabled by default. Don't disable it. +@vindex remote-file-name-inhibit-cache Set @code{remote-file-name-inhibit-cache} to @code{nil} if remote files are not independently updated outside @value{tramp}'s control. That cache cleanup will be necessary if the remote directories or @@ -3427,6 +3428,16 @@ first saving to a temporary file. @end itemize +@item +@value{tramp} fails in a chrooted environment + +@vindex tramp-local-host-regexp +When connecting to a local host, @value{tramp} uses some internal +optimizations. They fail, when there is a chrooted environment. In +order to disable those optimizations, set user option +@option{tramp-local-host-regexp} to @code{nil}. + + @item @value{tramp} does not recognize if a @command{ssh} session hangs -- cgit v1.2.1