]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#29291
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 14 Nov 2017 09:38:41 +0000 (10:38 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 14 Nov 2017 09:38:41 +0000 (10:38 +0100)
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl):
Preserve permissions when copying.  (Bug#29291)

test/lisp/net/tramp-tests.el

index a43ac739496916b5f53d66ee32579dc2c5b6fe42..68236daf49b8c096701758b8d2afef1a3ae5abf9 100644 (file)
@@ -2940,7 +2940,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
            (write-region "foo" nil tmp-name1)
            (should (file-exists-p tmp-name1))
            (should (file-acl tmp-name1))
-           (copy-file tmp-name1 tmp-name2)
+           (copy-file tmp-name1 tmp-name2 nil nil nil 'preserve-permissions)
            (should (file-acl tmp-name2))
            (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2)))
            ;; Different permissions mean different ACLs.
@@ -2966,7 +2966,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
            (write-region "foo" nil tmp-name1)
            (should (file-exists-p tmp-name1))
            (should (file-acl tmp-name1))
-           (copy-file tmp-name1 tmp-name3)
+           (copy-file tmp-name1 tmp-name3 nil nil nil 'preserve-permissions)
            (should (file-acl tmp-name3))
            (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3)))
            ;; Different permissions mean different ACLs.
@@ -2980,7 +2980,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
 
            ;; Two files with same ACLs.
            (delete-file tmp-name1)
-           (copy-file tmp-name3 tmp-name1)
+           (copy-file tmp-name3 tmp-name1 nil nil nil 'preserve-permissions)
            (should (file-acl tmp-name1))
            (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3)))
            ;; Different permissions mean different ACLs.