Commit f9274544 authored by Glenn Morris's avatar Glenn Morris
Browse files

(diff-find-file-name): Only accept regular files, to rule out

/dev/null, directories, etc.
parent c62a495a
2007-08-27 Glenn Morris <rgm@gnu.org>
* diff-mode.el (diff-find-file-name): Only accept regular files,
to rule out /dev/null, directories, etc.
* vc-svn.el (vc-svn-diff): If the repository version of all the
files is the same as the specified OLDVERS, do a local diff.
......
......@@ -682,7 +682,9 @@ PREFIX is only used internally: don't use it."
((or (null files)
(setq file (do* ((files files (cdr files))
(file (car files) (car files)))
((or (null file) (file-exists-p file))
;; Use file-regular-p to avoid
;; /dev/null, directories, etc.
((or (null file) (file-regular-p file))
file))))
file))
;; <foo>.rej patches implicitly apply to <foo>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment