From dc554c3acc16e3aa7435c018a23a3a94bf50902e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 17 Nov 1994 16:53:01 +0000 Subject: [PATCH] (backup-buffer): Use file-ownership-preserved-p. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 6037b19435d..e226461bd83 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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 -- 2.39.5