summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2010-01-23 12:02:28 +0100
committerMichael Albinus <michael.albinus@gmx.de>2010-01-23 12:02:28 +0100
commit0536254eb9edf334afd8dd11c1a9ac37b9ee66d2 (patch)
treee4f16fe40474a3a76dde27e1ca45cba574dd669d /lisp/net
parent3d782998caa47e69de96807eb9deee2b9aa1d9d1 (diff)
downloademacs-0536254eb9edf334afd8dd11c1a9ac37b9ee66d2.tar.gz
* net/tramp-smb.el (tramp-smb-conf): New defcustom.
(tramp-smb-maybe-open-connection): Use it.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp-smb.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index 9d176a1fd3c..e9051f0a435 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -61,6 +61,13 @@
:group 'tramp
:type 'string)
+(defcustom tramp-smb-conf "/dev/null"
+ "*Path of the smb.conf file.
+If it is nil, no smb.conf will be added to the `tramp-smb-program'
+call, letting the SMB client use the default one."
+ :group 'tramp
+ :type '(choice (const nil) (file :must-match t)))
+
(defvar tramp-smb-version nil
"*Version string of the SMB client.")
@@ -1281,7 +1288,8 @@ connection if a previous connection has died for some reason."
(when domain (setq args (append args (list "-W" domain))))
(when port (setq args (append args (list "-p" port))))
- (setq args (append args (list "-s" "/dev/null")))
+ (when tramp-smb-conf
+ (setq args (append args (list "-s" tramp-smb-conf))))
;; OK, let's go.
(tramp-message