From 7da6bf0059a9ddd4605d16322474c258f7bbf27b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 1 Jan 2003 16:55:11 +0000 Subject: [PATCH] (backup-buffer): Cope if file-modes returns nil. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 3b0fc3e63db..3ec068f953b 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2400,7 +2400,7 @@ BACKUPNAME is the backup file name, which is the old file renamed." ; (file-symlink-p buffer-file-name) backup-by-copying ;; Don't rename a suid or sgid file. - (< 0 (logand modes #o6000)) + (and modes (< 0 (logand modes #o6000))) (and backup-by-copying-when-linked (> (file-nlinks real-file-name) 1)) (and (or backup-by-copying-when-mismatch -- 2.39.2