unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [Emacs 26] Possible bug with TRAMP accessing some files when using hops
@ 2018-03-23  9:09 Nicolas Petton
  2018-03-23  9:20 ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Petton @ 2018-03-23  9:09 UTC (permalink / raw)
  To: Emacs Devel; +Cc: michael.albinus

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

Hi,

Before I report a bug for Emacs 26, I want to confirm an issue.

I started using hops recently to access remote files as root (using
sudo), like the following:

  C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf

It works fine most of the times, but sometimes I end up with an empty
buffer.

This always happens with the same files, like /etc/deluser.conf on a
clean debian stretch (/etc/hosts works fine for instance).

I cannot see any obvious reason like file permissions or attributes, so
the issue is really puzzling me.

I have tested this with the latest commit on the emacs-26 branch on two
different machines, with two different remote hosts (both debian stretch
though).

Cheers,
Nico

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs 26] Possible bug with TRAMP accessing some files when using hops
  2018-03-23  9:09 [Emacs 26] Possible bug with TRAMP accessing some files when using hops Nicolas Petton
@ 2018-03-23  9:20 ` Michael Albinus
  2018-03-23  9:29   ` Nicolas Petton
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2018-03-23  9:20 UTC (permalink / raw)
  To: Nicolas Petton; +Cc: Emacs Devel

Nicolas Petton <nicolas@petton.fr> writes:

> Hi,

Hi Nico,

> Before I report a bug for Emacs 26, I want to confirm an issue.

Wouldn't be a problem for me. Closing bugs as not-a-bug is so easy, in
case of :-)

> I started using hops recently to access remote files as root (using
> sudo), like the following:
>
>   C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf

I don't know whether it is related, but the second host name shall be
the same like the first one. Something like
/ssh:me@example.com|sudo:example.com:/etc/deluser.conf

> It works fine most of the times, but sometimes I end up with an empty
> buffer.
>
> This always happens with the same files, like /etc/deluser.conf on a
> clean debian stretch (/etc/hosts works fine for instance).
>
> I cannot see any obvious reason like file permissions or attributes, so
> the issue is really puzzling me.
>
> I have tested this with the latest commit on the emacs-26 branch on two
> different machines, with two different remote hosts (both debian stretch
> though).

Pls set tramp-verbose to 6, and send the Tramp debug buffer once it
failed. In case of confidentiality problems, send it just to me (if possible).

> Cheers,
> Nico

Best regards, Michael.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs 26] Possible bug with TRAMP accessing some files when using hops
  2018-03-23  9:20 ` Michael Albinus
@ 2018-03-23  9:29   ` Nicolas Petton
  2018-03-23  9:50     ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Petton @ 2018-03-23  9:29 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Michael Albinus <michael.albinus@gmx.de> writes:


>> Before I report a bug for Emacs 26, I want to confirm an issue.
>
> Wouldn't be a problem for me. Closing bugs as not-a-bug is so easy, in
> case of :-)

You're right, but I was skeptical and guessed the issue came from me
(which seems to be the case).

>>   C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf
>
> I don't know whether it is related, but the second host name shall be
> the same like the first one. Something like
> /ssh:me@example.com|sudo:example.com:/etc/deluser.conf

Thanks, that fixes the issue.  However now I'm wondering why for some
files it works with the second host being "sudo:localhost".

I'll set tramp-verbose to 6 to see what actually happens.

Cheers,
Nico

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs 26] Possible bug with TRAMP accessing some files when using hops
  2018-03-23  9:29   ` Nicolas Petton
@ 2018-03-23  9:50     ` Michael Albinus
  2018-03-26  8:43       ` Nicolas Petton
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2018-03-23  9:50 UTC (permalink / raw)
  To: Nicolas Petton; +Cc: Emacs Devel

Nicolas Petton <nicolas@petton.fr> writes:

>>>   C-x C-f /ssh:me@example.com|sudo:localhost:/etc/deluser.conf
>>
>> I don't know whether it is related, but the second host name shall be
>> the same like the first one. Something like
>> /ssh:me@example.com|sudo:example.com:/etc/deluser.conf
>
> Thanks, that fixes the issue.  However now I'm wondering why for some
> files it works with the second host being "sudo:localhost".

That's an inconsistency in Tramp which I've planned several times to
fix, but there were always more important issues to solve.

A bug might trigger me to do this, finally :-)

> I'll set tramp-verbose to 6 to see what actually happens.

Pls do.

> Cheers,
> Nico

Best regards, Michael.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Emacs 26] Possible bug with TRAMP accessing some files when using hops
  2018-03-23  9:50     ` Michael Albinus
@ 2018-03-26  8:43       ` Nicolas Petton
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Petton @ 2018-03-26  8:43 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Emacs Devel

[-- Attachment #1: Type: text/plain, Size: 137 bytes --]

Michael Albinus <michael.albinus@gmx.de> writes:

> A bug might trigger me to do this, finally :-)

I made a bug report ;)

Cheers,
Nico

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-26  8:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-23  9:09 [Emacs 26] Possible bug with TRAMP accessing some files when using hops Nicolas Petton
2018-03-23  9:20 ` Michael Albinus
2018-03-23  9:29   ` Nicolas Petton
2018-03-23  9:50     ` Michael Albinus
2018-03-26  8:43       ` Nicolas Petton

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).