]> git.eshelyaron.com Git - emacs.git/commit
Fix some edge cases of tramp-smb
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 2 May 2018 10:31:51 +0000 (12:31 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 2 May 2018 10:31:51 +0000 (12:31 +0200)
commit8ae7c424c409aa31fa52304752ba62d4b5a9a4d0
treeea18bd161145904adcf9bbe43557b29108f746dc
parent3e7ec620d4d49ee82bb2f4c5b9ac4095f06a15e7
Fix some edge cases of tramp-smb

* lisp/net/tramp-smb.el (tramp-smb-errors):
Add "NT_STATUS_REVISION_MISMATCH".
(tramp-smb-handle-delete-directory): Check, that the directory
has been removed indeed.
(tramp-smb-get-localname): Add further checks on filename syntax.

* lisp/net/tramp.el (tramp-localname-regexp): Do not allow linefeeds.

* test/lisp/net/tramp-tests.el (tramp-smb-get-localname): Declare.
(auth-source-save-behavior): Set it to nil.
(tramp-test01-file-name-syntax): Extend, checking for linefeeds.
(tramp-test03-file-name-host-rules, tramp--test-utf8): Refine tests.
(tramp-test03-file-name-method-rules): New test.
(tramp--test-ignore-add-name-to-file-error): New defmacro.
(tramp-test21-file-links): Use it.
lisp/net/tramp-smb.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el