]> git.eshelyaron.com Git - emacs.git/commitdiff
(backup-buffer): Cope if file-modes returns nil.
authorRichard M. Stallman <rms@gnu.org>
Wed, 1 Jan 2003 16:55:11 +0000 (16:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 1 Jan 2003 16:55:11 +0000 (16:55 +0000)
lisp/files.el

index 3b0fc3e63db91e68671f8d7f1fc07f8af26d54b8..3ec068f953b1ab2a0a36871d0e4114799c792f51 100644 (file)
@@ -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