From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#4841: 23.1.50; tramp su/sudo makes vc-dir hang (found remote shell ...) Date: Sat, 07 Nov 2009 14:10:07 +0100 Message-ID: <877hu232hc.fsf@gmx.de> References: <87pr83ehqv.fsf@usha.takhisis.invalid> <87bpjm84qp.fsf@gmx.de> <20091101220520.GA19609@usha.takhisis.invalid> <20091102091820.GA11435@usha.takhisis.invalid> <87my33z4w8.fsf@gmx.de> <20091103220924.GC1801@usha.takhisis.invalid> Reply-To: Michael Albinus , 4841@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257601689 21126 80.91.229.12 (7 Nov 2009 13:48:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2009 13:48:09 +0000 (UTC) Cc: 4841@emacsbugs.donarmstrong.com, rfrancoise@debian.org To: Stefano Zacchiroli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 07 14:48:02 2009 Return-path: Envelope-to: geb-bug-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 1N6le5-0008Lf-7S for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Nov 2009 14:48:01 +0100 Original-Received: from localhost ([127.0.0.1]:55508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6le4-00067W-OV for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Nov 2009 08:48:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6ldV-0005rH-Iu for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2009 08:47:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6ldP-0005oS-Up for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2009 08:47:24 -0500 Original-Received: from [199.232.76.173] (port=38382 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6ldP-0005oL-Ms for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2009 08:47:19 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55257) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N6ldP-00049g-4j for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2009 08:47:19 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA7DlHDr012099; Sat, 7 Nov 2009 05:47:17 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA7Dj51a011655; Sat, 7 Nov 2009 05:45:05 -0800 Resent-Date: Sat, 7 Nov 2009 05:45:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Michael Albinus Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 07 Nov 2009 13:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4841 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4841-submit@emacsbugs.donarmstrong.com id=B4841.125760103910594 (code B ref 4841); Sat, 07 Nov 2009 13:45:04 +0000 Original-Received: (at 4841) by emacsbugs.donarmstrong.com; 7 Nov 2009 13:37:19 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id nA7DbGWE010589 for <4841@emacsbugs.donarmstrong.com>; Sat, 7 Nov 2009 05:37:18 -0800 Original-Received: (qmail invoked by alias); 07 Nov 2009 13:37:10 -0000 Original-Received: from p57A216AC.dip0.t-ipconnect.de (EHLO magdalene.local) [87.162.22.172] by mail.gmx.net (mp067) with SMTP; 07 Nov 2009 14:37:10 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+kJaJ7HWykhRdydhWCHuvJYWYYDUYV6nxEY4+h2d Engynr0zPi2y3Q In-Reply-To: <20091103220924.GC1801@usha.takhisis.invalid> (Stefano Zacchiroli's message of "Tue, 3 Nov 2009 23:09:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 07 Nov 2009 08:47:24 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32463 Archived-At: Stefano Zacchiroli writes: > On Tue, Nov 03, 2009 at 10:15:35PM +0100, Michael Albinus wrote: >> The last command Tramp performs is >> >> cd /etc/; exec git ls-files -z -o --directory --no-empty-directory --exclude-standard -- >> >> Nothing returned. Could you, please, run the command as root in a shell, >> and see what happens? Maybe with and without the "exec" ... > > Sure: > > root@usha:/etc# git ls-files -z -o --directory --no-empty-directory --exclude-standard -- > root@usha:/etc# echo $? > 0 > root@usha:/etc# touch a > root@usha:/etc# git ls-files -z -o --directory --no-empty-directory --exclude-standard -- > aroot@usha:/etc# echo foo >> inittab > root@usha:/etc# # note the heading 'a' before the prompt No problem. The "-z" option let's return a null byte instead of a newline. Tramp shall be able to handle it, see bug report #3858. > root@usha:/etc# exec git ls-files -z -o --directory --no-empty-directory --exclude-standard -- > zack@usha:~$ echo $? > 0 > zack@usha:~$ > > (I'm not sure the last return code is actually faithful, as I haven't > verified whether su returns to the caller the exit code of the shell > process.) What I'm curious about is, why your commands are preceeded by "exec". I've checked Emacs 23.1.50; git commands are executed without "exec" in Tramp. Maybe you have an outdated vc-git.el in the way? Could you, please, start "emacs -Q" and see, whether it works better? If it still doesn't work, set `tramp-verbose' to 10, and show the debug buffer of Tramp, again. > Cheers. Best regards, Michael.