summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-smb.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2018-11-28 16:38:49 +0100
committerMichael Albinus <michael.albinus@gmx.de>2018-11-28 16:38:49 +0100
commit9b9c70b7dbaa001d2f78a15fd1f3aaa8fce44eef (patch)
treecfa695721fbefaa5dbe0366e349288d2905fd814 /lisp/net/tramp-smb.el
parent1ca436a33c7de612e44409841d6bed0fe6268141 (diff)
downloademacs-9b9c70b7dbaa001d2f78a15fd1f3aaa8fce44eef.tar.gz
Tramp cleanup
* lisp/net/tramp-sh.el (tramp-sh-handle-file-name-all-completions) * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions): * lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Use `string-match-p'. * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): Set file properties more robust. * lisp/net/tramp-sh.el (tramp-stat-marker) (tramp-convert-file-attributes): Add tramp-autoload cookie.
Diffstat (limited to 'lisp/net/tramp-smb.el')
-rw-r--r--lisp/net/tramp-smb.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index 23b5176b528..a49dbbdb39a 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -1796,12 +1796,12 @@ Result is the list (LOCALNAME MODE SIZE MTIME)."
(if (string-match "\\([ACDEHNORrsSTV]+\\)?$" line)
(setq
mode (or (match-string 1 line) "")
- mode (save-match-data (format
+ mode (format
"%s%s"
- (if (string-match "D" mode) "d" "-")
+ (if (string-match-p "D" mode) "d" "-")
(mapconcat
(lambda (_x) "") " "
- (concat "r" (if (string-match "R" mode) "-" "w") "x"))))
+ (concat "r" (if (string-match "R" mode) "-" "w") "x")))
line (substring line 0 -6))
(cl-return))