]> git.eshelyaron.com Git - emacs.git/commitdiff
(backup-buffer): Use file-ownership-preserved-p.
authorRichard M. Stallman <rms@gnu.org>
Thu, 17 Nov 1994 16:53:01 +0000 (16:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 17 Nov 1994 16:53:01 +0000 (16:53 +0000)
lisp/files.el

index 6037b19435d3a1cc21b9bb4b54f23c12402f30da..e226461bd8338d8cf471cc54c645474b4ee53a76 100644 (file)
@@ -1371,7 +1371,7 @@ the modes of the new file to agree with the old modes."
                          (and backup-by-copying-when-mismatch
                               (let ((attr (file-attributes real-file-name)))
                                 (or (nth 9 attr)
-                                    (/= (nth 2 attr) (user-uid))))))
+                                    (not (file-ownership-preserved-p real-file-name))))))
                      (condition-case ()
                          (copy-file real-file-name backupname t t)
                        (file-error