emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#22542: closed ([PATCH] Add support for `doas` comm


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22542: closed ([PATCH] Add support for `doas` command.)
Date: Fri, 05 Feb 2016 17:09:01 +0000

Your message dated Fri, 05 Feb 2016 18:08:32 +0100
with message-id <address@hidden>
and subject line Re: bug#22542: [PATCH] Add support for `doas` command.
has caused the debbugs.gnu.org bug report #22542,
regarding [PATCH] Add support for `doas` command.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
22542: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22542
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] Add support for `doas` command. Date: Wed, 3 Feb 2016 17:19:33 +0800
In OpenBSD5.8, `sudo` has been replaced with b`doas`.
---
 lisp/net/tramp-sh.el | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 1f43747..11aa495 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -300,6 +300,13 @@ tramp-ssh-controlmaster-options
     (tramp-connection-timeout   10)))
 ;;;###tramp-autoload
 (add-to-list 'tramp-methods
+  '("doas"
+    (tramp-login-program        "doas")
+    (tramp-login-args           (("-u" "%u") ("-s")))
+    (tramp-remote-shell         "/bin/sh")
+    (tramp-connection-timeout   10)))
+;;;###tramp-autoload
+(add-to-list 'tramp-methods
   '("ksu"
     (tramp-login-program        "ksu")
     (tramp-login-args           (("%u") ("-q")))
@@ -401,7 +408,7 @@ tramp-ssh-controlmaster-options
 
 ;;;###tramp-autoload
 (add-to-list 'tramp-default-user-alist
-            `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu")) "\\'")
+            `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu" "doas")) "\\'")
               nil "root"))
 ;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored.
 ;; Do not add "plink" based methods, they ask interactively for the user.
@@ -471,6 +478,7 @@ tramp-completion-function-alist-putty
      (tramp-set-completion-function "nc" 
tramp-completion-function-alist-telnet)
      (tramp-set-completion-function "su" tramp-completion-function-alist-su)
      (tramp-set-completion-function "sudo" tramp-completion-function-alist-su)
+     (tramp-set-completion-function "doas" tramp-completion-function-alist-su)
      (tramp-set-completion-function "ksu" tramp-completion-function-alist-su)
      (tramp-set-completion-function
       "krlogin" tramp-completion-function-alist-rsh)
-- 
2.5.0






--- End Message ---
--- Begin Message --- Subject: Re: bug#22542: [PATCH] Add support for `doas` command. Date: Fri, 05 Feb 2016 18:08:32 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux)
Xi Lu <address@hidden> writes:

> In OpenBSD5.8, `sudo` has been replaced with b`doas`.

Thanks for the patch, I've installed it in both Tramp and Emacs
repositories, in the master branch.

Best regards, Michael.


--- End Message ---

reply via email to

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