summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-01-01 16:55:11 +0000
committerRichard M. Stallman <rms@gnu.org>2003-01-01 16:55:11 +0000
commit7da6bf0059a9ddd4605d16322474c258f7bbf27b (patch)
tree90c2ca2f4d1f616c045277f61f3e5fcec424b707
parent128a6043024e1d8690d63f3a9948a57eb993bdec (diff)
downloademacs-7da6bf0059a9ddd4605d16322474c258f7bbf27b.tar.gz
(backup-buffer): Cope if file-modes returns nil.
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
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