Fix logic error in Tramp, setting file ownership
* lisp/net/tramp.el (tramp-skeleton-write-region): Fix logic in changing file ownership. (Bug#56180) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
6fbea946bf
commit
de0b7af169
1 changed files with 2 additions and 2 deletions
|
@ -3462,8 +3462,8 @@ BODY is the backend specific code."
|
|||
;; `file-precious-flag' is set.
|
||||
(or (file-attribute-modification-time file-attr)
|
||||
(current-time)))
|
||||
(unless (and (= (file-attribute-user-id file-attr) uid)
|
||||
(= (file-attribute-group-id file-attr) gid))
|
||||
(when (and (= (file-attribute-user-id file-attr) uid)
|
||||
(= (file-attribute-group-id file-attr) gid))
|
||||
(setq need-chown nil))))
|
||||
|
||||
;; Set the ownership.
|
||||
|
|
Loading…
Add table
Reference in a new issue