diff options
author | Richard M. Stallman <rms@gnu.org> | 2003-01-01 16:55:11 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2003-01-01 16:55:11 +0000 |
commit | 7da6bf0059a9ddd4605d16322474c258f7bbf27b (patch) | |
tree | 90c2ca2f4d1f616c045277f61f3e5fcec424b707 /lisp | |
parent | 128a6043024e1d8690d63f3a9948a57eb993bdec (diff) | |
download | emacs-7da6bf0059a9ddd4605d16322474c258f7bbf27b.tar.gz |
(backup-buffer): Cope if file-modes returns nil.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/files.el | 2 |
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 |