From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?TWF0cyBMw7ZmZGFobA==?= Newsgroups: gmane.emacs.help Subject: Re: Tramp and BusyBox problem? Date: Tue, 17 Mar 2009 23:30:27 +0100 Organization: albasani.net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1237329657 1243 80.91.229.12 (17 Mar 2009 22:40:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 22:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 17 23:42:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjhzB-0007Mo-DZ for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 23:42:13 +0100 Original-Received: from localhost ([127.0.0.1]:59587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ljhxp-0007xr-7i for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Mar 2009 18:40:49 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!news.ecp.fr!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-X-Trace: news.albasani.net cGRpiZWJaLE1mifxztg6hmauAOFgJZcx8pPBBgCC7JL/WkUpgjxPF8xyV9pE5bBgwQuU4jzOcszod7KbTdCC3l7hrp8pGgn4cDW/e7A2ik+LDcC+aZ+7mN8WowpARCpE Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Tue, 17 Mar 2009 22:30:29 +0000 (UTC) X-User-ID: 2dItfNb9F2jgKAwv4TaXq4URWR0OC1IW+aqMvmebxa5/lwBeXM6nTD4zW0XNZGcZydMfkWnBn8/yQW23hC0atA== In-Reply-To: Cancel-Lock: sha1:uHVmwl/hpiGr2YxY8EFc0u+v8uU= User-Agent: Thunderbird 2.0.0.19 (X11/20090105) X-NNTP-Posting-Host: vUvEmSdvonh8vZQTi3yGlIqHIeSK6C3l6QcxhYYq2j0= Original-Xref: news.stanford.edu gnu.emacs.help:167738 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63032 Archived-At: Michael Albinus wrote: > Mats Löfdahl writes: > > [I fear my answer from yesterday has been lost. Reposted, therefore.] > >> It was different this time. When I connected as mats (bash), I first >> got the same uname error message as for root (BusyBox). But I knew >> that it _had_ worked, so I tried again and got the ugly dired buffer. >> >> So I did the same experiment with root in a fresh instance of >> emacs. This generated the uname error but did _not_ work at the second >> attempt. >> >> The debug buffers from the two sessions are here: >> >> http://www.solarphysics.kva.se/~mats/debug1.txt - root/BusyBox >> http://www.solarphysics.kva.se/~mats/debug2.txt - mats/bash > > Looks like there is a race condition. Could you, please, check the > appended patch? Sure. And thanks! I applied the patch and byte-compiled tramp.el. Looks like I did it right: [root@localhost site-lisp]# diff tramp.el tramp.el.orig 5855,5856c5855,5859 < (when (not (tramp-get-connection-property proc "check-remote-echo" nil)) < ;; No echo to be handled, now we can look for the regexp. --- > (when (or > ;; No echo to be handled, now we can look for the regexp. > (not (tramp-get-connection-property proc "check-remote-echo" nil)) > ;; Sometimes the echo is invisible. > (not (re-search-forward tramp-echo-mark-marker nil t))) [root@localhost site-lisp]# ls -l tramp.el* -rw-r--r-- 1 root root 303964 2009-03-17 23:19 tramp.el -rw-r--r-- 1 root root 285934 2009-03-17 23:20 tramp.elc -rw-r--r-- 1 root root 304070 2009-03-08 17:37 tramp.el.orig I then started a fresh emacs and did the double attempt to connect as root. To me it looked just like last time but I've uploaded the debug buffer anyway: http://www.solarphysics.kva.se/~mats/debug3.txt