* bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
@ 2009-09-05 16:26 ` Teemu Likonen
2009-09-06 13:09 ` Michael Albinus
2009-09-06 17:35 ` bug#4350: marked as done (tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error) Emacs bug Tracking System
0 siblings, 2 replies; 6+ messages in thread
From: Teemu Likonen @ 2009-09-05 16:26 UTC (permalink / raw)
To: bug-gnu-emacs
The current (Sat, 05 Sep 2009 16:26:16 +0000) Emacs trunk repository has
broken tramp /su and /sudo protocol. To reproduce:
$ emacs -Q
C-x C-f /su::/root/test.txt
[Type password]
The result:
tramp-error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t
%i.0 -1)' /root/test.txt' returns with error
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
2009-09-05 16:26 ` bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error Teemu Likonen
@ 2009-09-06 13:09 ` Michael Albinus
2009-09-06 13:32 ` Teemu Likonen
2009-09-06 17:35 ` bug#4350: marked as done (tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error) Emacs bug Tracking System
1 sibling, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2009-09-06 13:09 UTC (permalink / raw)
To: Teemu Likonen; +Cc: 4350
Teemu Likonen <tlikonen@iki.fi> writes:
> The current (Sat, 05 Sep 2009 16:26:16 +0000) Emacs trunk repository has
> broken tramp /su and /sudo protocol. To reproduce:
>
> $ emacs -Q
>
> C-x C-f /su::/root/test.txt
>
> [Type password]
>
> The result:
>
> tramp-error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t
> %i.0 -1)' /root/test.txt' returns with error
Could you, please, set tramp-verbose to 6, and show Tramp's debug
buffer?
Thanks, and best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
2009-09-06 13:09 ` Michael Albinus
@ 2009-09-06 13:32 ` Teemu Likonen
2009-09-06 14:29 ` Michael Albinus
[not found] ` <mailman.6112.1252248430.2239.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Teemu Likonen @ 2009-09-06 13:32 UTC (permalink / raw)
To: Michael Albinus; +Cc: 4350
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
On 2009-09-06 15:09 (+0200), Michael Albinus wrote:
> Teemu Likonen <tlikonen@iki.fi> writes:
>> The result:
>>
>> tramp-error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t
>> %i.0 -1)' /root/test.txt' returns with error
>
> Could you, please, set tramp-verbose to 6, and show Tramp's debug
> buffer?
Yes, see the attachment.
[-- Attachment #2: tramp-debug.txt --]
[-- Type: text/plain, Size: 10107 bytes --]
;; GNU Emacs: 23.1.50.2 Tramp: 2.1.17-pre -*- mode: outline; -*-
16:24:48.800826 tramp-maybe-open-connection (3) # Opening connection for root@mithlond.arda.local using sudo...
16:24:48.802965 tramp-maybe-open-connection (6) # /bin/sh
16:24:48.803530 tramp-maybe-open-connection (3) # Waiting 60s for local shell to come up...
16:24:48.804009 tramp-wait-for-regexp (6) #
$
16:24:48.804760 tramp-maybe-open-connection (3) # Sending command `sudo -u root -s -H -p Password: && exit || exit'
16:24:48.805042 tramp-send-command (6) # sudo -u root -s -H -p Password: && exit || exit
16:24:48.805607 tramp-process-actions (3) # Waiting for prompts from remote shell
16:24:48.910240 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
16:24:48.910563 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
16:24:48.910902 tramp-process-one-action (5) # Call `tramp-action-password'
16:24:48.911415 tramp-action-password (3) # Sending Password
16:24:56.986428 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|Sorry, try again\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:24:56.986825 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:24:56.987187 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^#$%>
]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
16:24:56.988597 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
16:24:56.988887 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
16:24:56.989176 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
16:24:56.989440 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
16:24:56.989684 tramp-process-one-action (5) # Call `tramp-action-process-alive'
16:24:56.990017 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
16:24:56.990397 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
16:24:56.990678 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|Sorry, try again\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:24:57.016461 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:24:57.016784 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^#$%>
]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
16:24:57.017047 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
16:24:57.017308 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
16:24:57.017565 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
16:24:57.017813 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
16:24:57.018057 tramp-process-one-action (5) # Call `tramp-action-process-alive'
16:24:57.096429 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
16:24:57.096762 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
16:24:57.097046 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|Sorry, try again\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:24:57.097349 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:24:57.097594 tramp-process-one-action (5) # Call `tramp-action-succeed'
16:24:57.097869 tramp-process-actions (6) #
Password:
mithlond:/tmp#
16:24:57.098365 tramp-maybe-open-connection (3) # Found remote shell prompt on `mithlond.arda.local'
16:24:57.098689 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\$\ PS2='' PS3='' /bin/sh
16:24:57.116781 tramp-wait-for-regexp (6) #
$
16:24:57.117069 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
16:24:57.117346 tramp-send-command (6) # stty -inlcr -echo kill '^U' erase '^H'
16:24:57.134142 tramp-wait-for-regexp (6) #
$
16:24:57.134469 tramp-send-command (6) # echo foo
16:24:57.135031 tramp-wait-for-regexp (6) #
foo
$
16:24:57.135286 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
16:24:57.135568 tramp-send-command (6) # PS1=///6f3b80573fd9e85f476dcd2bfa22dfcb\$
16:24:57.136089 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.136487 tramp-send-command (6) # PS2=''
16:24:57.136956 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.137345 tramp-send-command (6) # PS3=''
16:24:57.137817 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.138203 tramp-send-command (6) # PROMPT_COMMAND=''
16:24:57.138678 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.139154 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
16:24:57.139424 tramp-send-command (6) # echo foo ; echo bar
16:24:57.139921 tramp-wait-for-regexp (6) #
foo
bar
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.140416 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to `utf-8-unix' and `utf-8-unix'
16:24:57.140687 tramp-send-command (6) # set +o vi +o emacs
16:24:57.141186 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.141551 tramp-open-connection-setup-interactive-shell (5) # Checking system information
16:24:57.141881 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
16:24:57.145078 tramp-wait-for-regexp (6) #
"Linux 2.6.26-2-686"
tramp_exit_status 0
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.145619 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for `send-process-string' bug
16:24:57.145873 tramp-set-remote-path (5) # Setting $PATH environment variable
16:24:57.146211 tramp-send-command (6) # PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin; export PATH
16:24:57.146757 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.147176 tramp-send-command (6) # mesg n; biff n
16:24:57.162844 tramp-wait-for-regexp (6) #
/bin/sh: biff: not found
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.163271 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
16:24:57.163585 tramp-send-command (6) # HISTFILE=$HOME/.tramp_history; export HISTFILE
16:24:57.164114 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.164517 tramp-send-command (6) # HISTSIZE=1; export HISTSIZE
16:24:57.165004 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.165402 tramp-send-command (6) # LC_ALL=C; export LC_ALL
16:24:57.165886 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.166283 tramp-send-command (6) # TERM=dumb; export TERM
16:24:57.166763 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.167182 tramp-send-command (6) # EMACS=t; export EMACS
16:24:57.167661 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.168065 tramp-send-command (6) # INSIDE_EMACS=23.1.50.2,tramp:2.1.17-pre; export INSIDE_EMACS
16:24:57.168554 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.169035 tramp-send-command (6) # unset correct autocorrect MAILPATH MAILCHECK MAIL HISTORY CDPATH
16:24:57.169529 tramp-wait-for-regexp (6) #
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.169917 tramp-send-command (6) # test -e /root/test.txt 2>/dev/null; echo tramp_exit_status $?
16:24:57.170472 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.172479 tramp-send-command (6) # test -d /root/test.txt 2>/dev/null; echo tramp_exit_status $?
16:24:57.173191 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.174692 tramp-handle-file-truename (4) # Finding true name for `/sudo:root@mithlond.arda.local:/root/test.txt'
16:24:57.174944 tramp-handle-file-truename (5) # Check /root
16:24:57.175834 tramp-do-file-attributes-with-stat (5) # file attributes with stat: /root
16:24:57.176198 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /root 2>/dev/null; echo tramp_exit_status $?
16:24:57.187447 tramp-wait-for-regexp (6) #
(("`/root'") 10 0 0 1252209679.0 1252158637.0 1252158637.0 4096.0 "drwxr-xr-x" t 393217.0 -1)
tramp_exit_status 0
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.188125 tramp-handle-file-truename (5) # Check /root/test.txt
16:24:57.188993 tramp-do-file-attributes-with-stat (5) # file attributes with stat: /root/test.txt
16:24:57.189368 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /root/test.txt 2>/dev/null; echo tramp_exit_status $?
16:24:57.191612 tramp-wait-for-regexp (6) #
tramp_exit_status 1
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.192252 tramp-barf-unless-okay (1) # File error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /root/test.txt' returns with error
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
2009-09-06 13:32 ` Teemu Likonen
@ 2009-09-06 14:29 ` Michael Albinus
[not found] ` <mailman.6112.1252248430.2239.bug-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2009-09-06 14:29 UTC (permalink / raw)
To: Teemu Likonen; +Cc: 4350
Teemu Likonen <tlikonen@iki.fi> writes:
>> Could you, please, set tramp-verbose to 6, and show Tramp's debug
>> buffer?
>
> Yes, see the attachment.
Thanks!
The problem is related to one of the outstanding optimization patches of
Julian. We are waiting for arrival of his papers at FSF.
More precisely, I've committed already my part, and I've overseen the
dependency. Sorry.
Since the patch does not modify more than 15 lines (the rest are just
changed indented lines), I've committed it as tiny patch. The problem
shall be fixed now.
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
[not found] ` <mailman.6112.1252248430.2239.bug-gnu-emacs@gnu.org>
@ 2009-09-06 15:40 ` Teemu Likonen
0 siblings, 0 replies; 6+ messages in thread
From: Teemu Likonen @ 2009-09-06 15:40 UTC (permalink / raw)
To: Michael Albinus; +Cc: 4350
On 2009-09-06 16:29 (+0200), Michael Albinus wrote:
> Since the patch does not modify more than 15 lines (the rest are just
> changed indented lines), I've committed it as tiny patch. The problem
> shall be fixed now.
I tested it very quickly but looks like it's indeed fixed. Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#4350: marked as done (tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error)
2009-09-05 16:26 ` bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error Teemu Likonen
2009-09-06 13:09 ` Michael Albinus
@ 2009-09-06 17:35 ` Emacs bug Tracking System
1 sibling, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-09-06 17:35 UTC (permalink / raw)
To: Michael Albinus
[-- Attachment #1: Type: text/plain, Size: 937 bytes --]
Your message dated Sun, 06 Sep 2009 19:29:42 +0200
with message-id <87fxb0gewp.fsf@gmx.de>
and subject line Re: bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
has caused the Emacs bug report #4350,
regarding tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)
--
4350: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4350
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
[-- Attachment #2: Type: message/rfc822, Size: 2470 bytes --]
From: Teemu Likonen <tlikonen@iki.fi>
To: bug-gnu-emacs@gnu.org
Subject: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
Date: Sat, 05 Sep 2009 19:26:39 +0300
Message-ID: <87my59pdc0.fsf@iki.fi>
The current (Sat, 05 Sep 2009 16:26:16 +0000) Emacs trunk repository has
broken tramp /su and /sudo protocol. To reproduce:
$ emacs -Q
C-x C-f /su::/root/test.txt
[Type password]
The result:
tramp-error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t
%i.0 -1)' /root/test.txt' returns with error
[-- Attachment #3: Type: message/rfc822, Size: 2102 bytes --]
From: Michael Albinus <michael.albinus@gmx.de>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: 4350-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
Date: Sun, 06 Sep 2009 19:29:42 +0200
Message-ID: <87fxb0gewp.fsf@gmx.de>
Teemu Likonen <tlikonen@iki.fi> writes:
> On 2009-09-06 16:29 (+0200), Michael Albinus wrote:
>
>> Since the patch does not modify more than 15 lines (the rest are just
>> changed indented lines), I've committed it as tiny patch. The problem
>> shall be fixed now.
>
> I tested it very quickly but looks like it's indeed fixed. Thanks.
OK, I mark it as fixed.
Best regards, Michael.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-06 17:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87fxb0gewp.fsf@gmx.de>
2009-09-05 16:26 ` bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error Teemu Likonen
2009-09-06 13:09 ` Michael Albinus
2009-09-06 13:32 ` Teemu Likonen
2009-09-06 14:29 ` Michael Albinus
[not found] ` <mailman.6112.1252248430.2239.bug-gnu-emacs@gnu.org>
2009-09-06 15:40 ` Teemu Likonen
2009-09-06 17:35 ` bug#4350: marked as done (tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error) Emacs bug Tracking System
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).