diff options
| author | Michael Albinus | 2010-01-23 12:02:28 +0100 |
|---|---|---|
| committer | Michael Albinus | 2010-01-23 12:02:28 +0100 |
| commit | 0536254eb9edf334afd8dd11c1a9ac37b9ee66d2 (patch) | |
| tree | e4f16fe40474a3a76dde27e1ca45cba574dd669d | |
| parent | 3d782998caa47e69de96807eb9deee2b9aa1d9d1 (diff) | |
| download | emacs-0536254eb9edf334afd8dd11c1a9ac37b9ee66d2.tar.gz emacs-0536254eb9edf334afd8dd11c1a9ac37b9ee66d2.zip | |
* net/tramp-smb.el (tramp-smb-conf): New defcustom.
(tramp-smb-maybe-open-connection): Use it.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 65e171c1381..a1871e59677 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,11 @@ | |||
| 1 | 2010-01-23 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-smb.el (tramp-smb-conf): New defcustom. | ||
| 4 | (tramp-smb-maybe-open-connection): Use it. | ||
| 5 | |||
| 1 | 2010-01-22 Michael Albinus <michael.albinus@gmx.de> | 6 | 2010-01-22 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-imap.el (top): Autoload needed packages. | 8 | * net/tramp-imap.el (top): Autoload needed packages. (Bug#5448) |
| 4 | 9 | ||
| 5 | 2010-01-22 Stefan Monnier <monnier@iro.umontreal.ca> | 10 | 2010-01-22 Stefan Monnier <monnier@iro.umontreal.ca> |
| 6 | 11 | ||
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 @@ | |||
| 61 | :group 'tramp | 61 | :group 'tramp |
| 62 | :type 'string) | 62 | :type 'string) |
| 63 | 63 | ||
| 64 | (defcustom tramp-smb-conf "/dev/null" | ||
| 65 | "*Path of the smb.conf file. | ||
| 66 | If it is nil, no smb.conf will be added to the `tramp-smb-program' | ||
| 67 | call, letting the SMB client use the default one." | ||
| 68 | :group 'tramp | ||
| 69 | :type '(choice (const nil) (file :must-match t))) | ||
| 70 | |||
| 64 | (defvar tramp-smb-version nil | 71 | (defvar tramp-smb-version nil |
| 65 | "*Version string of the SMB client.") | 72 | "*Version string of the SMB client.") |
| 66 | 73 | ||
| @@ -1281,7 +1288,8 @@ connection if a previous connection has died for some reason." | |||
| 1281 | 1288 | ||
| 1282 | (when domain (setq args (append args (list "-W" domain)))) | 1289 | (when domain (setq args (append args (list "-W" domain)))) |
| 1283 | (when port (setq args (append args (list "-p" port)))) | 1290 | (when port (setq args (append args (list "-p" port)))) |
| 1284 | (setq args (append args (list "-s" "/dev/null"))) | 1291 | (when tramp-smb-conf |
| 1292 | (setq args (append args (list "-s" tramp-smb-conf)))) | ||
| 1285 | 1293 | ||
| 1286 | ;; OK, let's go. | 1294 | ;; OK, let's go. |
| 1287 | (tramp-message | 1295 | (tramp-message |