* lisp/net/tramp.el (tramp-skeleton-write-region): Fix logic in
changing file ownership. (Bug#56180)
Copyright-paperwork-exempt: yes
;; `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.