aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2017-11-14 10:38:41 +0100
committerMichael Albinus2017-11-14 10:38:41 +0100
commita5ec644caa746092a9a1d002f565d4fb260f9567 (patch)
tree56aaa00cd874436e879c448a6d362d2e6776fe68
parent8b900e5ba2052898d98f7bd4ff3151389c10ab02 (diff)
downloademacs-a5ec644caa746092a9a1d002f565d4fb260f9567.tar.gz
emacs-a5ec644caa746092a9a1d002f565d4fb260f9567.zip
Fix Bug#29291
* test/lisp/net/tramp-tests.el (tramp-test24-file-acl): Preserve permissions when copying. (Bug#29291)
-rw-r--r--test/lisp/net/tramp-tests.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index a43ac739496..68236daf49b 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -2940,7 +2940,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
2940 (write-region "foo" nil tmp-name1) 2940 (write-region "foo" nil tmp-name1)
2941 (should (file-exists-p tmp-name1)) 2941 (should (file-exists-p tmp-name1))
2942 (should (file-acl tmp-name1)) 2942 (should (file-acl tmp-name1))
2943 (copy-file tmp-name1 tmp-name2) 2943 (copy-file tmp-name1 tmp-name2 nil nil nil 'preserve-permissions)
2944 (should (file-acl tmp-name2)) 2944 (should (file-acl tmp-name2))
2945 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2))) 2945 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name2)))
2946 ;; Different permissions mean different ACLs. 2946 ;; Different permissions mean different ACLs.
@@ -2966,7 +2966,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
2966 (write-region "foo" nil tmp-name1) 2966 (write-region "foo" nil tmp-name1)
2967 (should (file-exists-p tmp-name1)) 2967 (should (file-exists-p tmp-name1))
2968 (should (file-acl tmp-name1)) 2968 (should (file-acl tmp-name1))
2969 (copy-file tmp-name1 tmp-name3) 2969 (copy-file tmp-name1 tmp-name3 nil nil nil 'preserve-permissions)
2970 (should (file-acl tmp-name3)) 2970 (should (file-acl tmp-name3))
2971 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) 2971 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3)))
2972 ;; Different permissions mean different ACLs. 2972 ;; Different permissions mean different ACLs.
@@ -2980,7 +2980,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
2980 2980
2981 ;; Two files with same ACLs. 2981 ;; Two files with same ACLs.
2982 (delete-file tmp-name1) 2982 (delete-file tmp-name1)
2983 (copy-file tmp-name3 tmp-name1) 2983 (copy-file tmp-name3 tmp-name1 nil nil nil 'preserve-permissions)
2984 (should (file-acl tmp-name1)) 2984 (should (file-acl tmp-name1))
2985 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3))) 2985 (should (string-equal (file-acl tmp-name1) (file-acl tmp-name3)))
2986 ;; Different permissions mean different ACLs. 2986 ;; Different permissions mean different ACLs.