diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2022-06-09 14:44:00 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2022-06-09 14:44:00 +0200 |
commit | 3fd08543782d0d417eaa2dda0727ea16b3271710 (patch) | |
tree | 3bb6782c63652b57cbd865c040ae2811335d8481 /test/lisp | |
parent | d02c94090c4dd7c90da9ccd3268a9e02cadf0a45 (diff) | |
download | emacs-3fd08543782d0d417eaa2dda0727ea16b3271710.tar.gz emacs-3fd08543782d0d417eaa2dda0727ea16b3271710.tar.bz2 emacs-3fd08543782d0d417eaa2dda0727ea16b3271710.zip |
Fix file name quoting in tramp-smb.el (do not merge)
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Quote tmpfile.
(tramp-smb-get-localname): Remove superfluous test. (Bug#55855)
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-method-rules):
Remove superfluous checks.
Diffstat (limited to 'test/lisp')
-rw-r--r-- | test/lisp/net/tramp-tests.el | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 61fa6a5ae4e..9071beedf2e 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -2028,17 +2028,7 @@ Also see `ignore'." :type 'user-error) (should-error (expand-file-name "/method:user1@host1|ssh:user2@host2:/path/to/file") - :type 'user-error)) - - ;; Samba does not support file names with periods followed by - ;; spaces, and trailing periods or spaces. - (when (tramp--test-smb-p) - (dolist (file '("foo." "foo. bar" "foo ")) - (should-error - (tramp-smb-get-localname - (tramp-dissect-file-name - (expand-file-name file tramp-test-temporary-file-directory))) - :type 'file-error)))) + :type 'user-error))) (ert-deftest tramp-test04-substitute-in-file-name () "Check `substitute-in-file-name'." |