unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Stefano Zacchiroli <zack@debian.org>
Cc: 4841@emacsbugs.donarmstrong.com, rfrancoise@debian.org
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	[thread overview]
Message-ID: <877hu232hc.fsf@gmx.de> (raw)
In-Reply-To: <20091103220924.GC1801@usha.takhisis.invalid> (Stefano Zacchiroli's message of "Tue, 3 Nov 2009 23:09:24 +0100")

Stefano Zacchiroli <zack@debian.org> 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.





  reply	other threads:[~2009-11-07 13:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-31 14:54 bug#4841: 23.1.50; tramp su/sudo makes vc-dir hang (found remote shell ...) Stefano Zacchiroli
2009-11-01 18:44 ` Michael Albinus
2009-11-01 22:05   ` Stefano Zacchiroli
2009-11-02  9:18     ` Stefano Zacchiroli
2009-11-03 21:15       ` Michael Albinus
2009-11-03 22:09         ` Stefano Zacchiroli
2009-11-07 13:10           ` Michael Albinus [this message]
2009-11-13 15:29             ` Stefano Zacchiroli
2009-11-13 21:21               ` Michael Albinus
2009-11-13 21:43                 ` Stefano Zacchiroli
2009-11-13 21:50                   ` Processed: " Emacs bug Tracking System
2022-02-09  9:33               ` bug#4841: 23.1.50; tramp su/sudo makes vc-dir hang with viper Lars Ingebrigtsen
2022-02-09 10:23                 ` Stefano Zacchiroli

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://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877hu232hc.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=4841@emacsbugs.donarmstrong.com \
    --cc=rfrancoise@debian.org \
    --cc=zack@debian.org \
    /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/emacs.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).