tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.1.18-23.2); User string gets trimmed by one character


From: Michael Albinus
Subject: Re: tramp (2.1.18-23.2); User string gets trimmed by one character
Date: Fri, 23 Jul 2010 16:25:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

"Jonathan Hill" <address@hidden> writes:

> Per your suggestion, I did the testing you suggested. The results are
> interesting. If you send "plink rh1.orc.com -l root", it does NOT
> register that a username was passed. However, if you send "plink -l
> root rh1.orc.com", then it works as expected. I suspect that I still
> need to change something about how tramp passes the command, but
> perhaps (hopefully) the "trimming" is just a red herring in this case.

Thanks for analysis, I've committed the following patch:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/tramp/lisp/tramp.el.~2.805~       2010-07-23 
16:02:42.409923357 +0200
--- /home/albinus/src/tramp/lisp/tramp.el       2010-07-23 15:52:10.000000000 
+0200
***************
*** 599,606 ****
             (tramp-copy-keep-date       nil)
             (tramp-password-end-of-line nil))
      ("plink" (tramp-login-program        "plink")
!            (tramp-login-args           (("%h") ("-l" "%u") ("-P" "%p")
!                                         ("-ssh")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         nil)
             (tramp-copy-args            nil)
--- 599,606 ----
             (tramp-copy-keep-date       nil)
             (tramp-password-end-of-line nil))
      ("plink" (tramp-login-program        "plink")
!            (tramp-login-args           (("-l" "%u") ("-P" "%p")
!                                         ("-ssh") ("%h")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         nil)
             (tramp-copy-args            nil)
***************
*** 609,616 ****
             (tramp-default-port         22))
      ("plink1"
             (tramp-login-program        "plink")
!            (tramp-login-args           (("%h") ("-l" "%u") ("-P" "%p")
!                                         ("-1" "-ssh")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         nil)
             (tramp-copy-args            nil)
--- 609,616 ----
             (tramp-default-port         22))
      ("plink1"
             (tramp-login-program        "plink")
!            (tramp-login-args           (("-l" "%u") ("-P" "%p")
!                                         ("-1" "-ssh") ("%h")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         nil)
             (tramp-copy-args            nil)
***************
*** 633,640 ****
             (tramp-copy-keep-date       nil)
             (tramp-password-end-of-line nil))
      ("pscp"  (tramp-login-program        "plink")
!            (tramp-login-args           (("%h") ("-l" "%u") ("-P" "%p")
!                                         ("-ssh")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         "pscp")
             (tramp-copy-args            (("-P" "%p") ("-scp") ("-p" "%k")))
--- 633,640 ----
             (tramp-copy-keep-date       nil)
             (tramp-password-end-of-line nil))
      ("pscp"  (tramp-login-program        "plink")
!            (tramp-login-args           (("-l" "%u") ("-P" "%p")
!                                         ("-ssh") ("%h")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         "pscp")
             (tramp-copy-args            (("-P" "%p") ("-scp") ("-p" "%k")))
***************
*** 642,649 ****
             (tramp-password-end-of-line "xy") ;see docstring for "xy"
             (tramp-default-port         22))
      ("psftp" (tramp-login-program        "plink")
!            (tramp-login-args           (("%h") ("-l" "%u") ("-P" "%p")
!                                         ("-ssh")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         "pscp")
             (tramp-copy-args            (("-P" "%p") ("-sftp") ("-p" "%k")))
--- 642,649 ----
             (tramp-password-end-of-line "xy") ;see docstring for "xy"
             (tramp-default-port         22))
      ("psftp" (tramp-login-program        "plink")
!            (tramp-login-args           (("-l" "%u") ("-P" "%p")
!                                         ("-ssh") ("%h")))
             (tramp-remote-sh            "/bin/sh")
             (tramp-copy-program         "pscp")
             (tramp-copy-args            (("-P" "%p") ("-sftp") ("-p" "%k")))
--8<---------------cut here---------------end--------------->8---

> Thanks,
>
> --jonathan

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]