emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 05570f0: Minor cleanup for Tramp "doas".


From: Michael Albinus
Subject: [Emacs-diffs] master 05570f0: Minor cleanup for Tramp "doas".
Date: Fri, 05 Feb 2016 17:57:42 +0000

branch: master
commit 05570f0002a6bcecf2b72ea3f22d6653e00a45a6
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Minor cleanup for Tramp "doas".
    
    * doc/misc/tramp.texi (Inline methods): Add "doas" method.
    
    * etc/NEWS: Add Tramp connection method "doas".
    
    * lisp/net/tramp-sh.el (tramp-methods) <doas>:
    Add `tramp-remote-shell-args'.
---
 doc/misc/tramp.texi  |    6 ++++++
 etc/NEWS             |    4 ++++
 lisp/net/tramp-sh.el |    3 ++-
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 16ff76b..294a3a9 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -590,6 +590,12 @@ the host returned by the function @command{(system-name)}. 
 See
 Similar to @option{su} method, @option{sudo} uses @command{sudo}.
 @command{sudo} must have sufficient rights to start a shell.
 
address@hidden @option{doas}
address@hidden method doas
address@hidden doas method
+
+This method is used on OpenBSD like the @command{sudo} command.
+
 @item @option{sg}
 @cindex method sg
 @cindex sg method
diff --git a/etc/NEWS b/etc/NEWS
index 3b520ec..95ade41 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -67,9 +67,13 @@ for the ChangeLog file, if none already exists.  Customize
 
 ** Tramp
 
++++
 *** New connection method "sg", which allows to edit files under
 different group ID.
 
++++
+*** New connection method "doas" for OpenBSD hosts.
+
 
 * New Modes and Packages in Emacs 25.2
 
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 5771269..c2ab67b 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -312,6 +312,7 @@ The string is used in `tramp-methods'.")
     (tramp-login-program        "doas")
     (tramp-login-args           (("-u" "%u") ("-s")))
     (tramp-remote-shell         "/bin/sh")
+    (tramp-remote-shell-args    ("-c"))
     (tramp-connection-timeout   10)))
 ;;;###tramp-autoload
 (add-to-list 'tramp-methods
@@ -415,7 +416,7 @@ The string is used in `tramp-methods'.")
 
 ;;;###tramp-autoload
 (add-to-list 'tramp-default-user-alist
-            `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu" "doas")) "\\'")
+            `(,(concat "\\`" (regexp-opt '("su" "sudo" "doas" "ksu")) "\\'")
               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.



reply via email to

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